UNPKG

native-base

Version:

Essential cross-platform UI components for React Native

18 lines 587 B
export function mergeRefs(refs) { return value => { refs.forEach(ref => { if (typeof ref === 'function') { ref(value); } else if (ref != null) { ref.current = value; } }); }; } export function composeEventHandlers(originalEventHandler, ourEventHandler) { return function handleEvent(event) { originalEventHandler === null || originalEventHandler === void 0 ? void 0 : originalEventHandler(event); ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event); }; } //# sourceMappingURL=mergeRefs.js.map