create-expo-cljs-app
Version:
Create a react native application with Expo and Shadow-CLJS!
16 lines • 443 B
JavaScript
export const handlerIDToTag = {};
const handlers = new Map();
let handlerTag = 1;
export function getNextHandlerTag() {
return handlerTag++;
}
export function registerHandler(handlerTag, handler) {
handlers.set(handlerTag, handler);
}
export function unregisterHandler(handlerTag) {
handlers.delete(handlerTag);
}
export function findHandler(handlerTag) {
return handlers.get(handlerTag);
}
//# sourceMappingURL=handlersRegistry.js.map