create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
15 lines (14 loc) • 387 B
JavaScript
/**
* @private
* get a recognizer by name if it is bound to a manager
* @param {Recognizer|String} otherRecognizer
* @param {Recognizer} recognizer
* @returns {Recognizer}
*/
export default function getRecognizerByNameIfManager(otherRecognizer, recognizer) {
let { manager } = recognizer;
if (manager) {
return manager.get(otherRecognizer);
}
return otherRecognizer;
}