UNPKG

react-native-a11y

Version:

Improvements of a11y for ReactNative, this library improve work with reader and keyboard focus and reader in general.

15 lines (14 loc) 454 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.combineRefs = void 0; const combineRefs = (...refs) => component => refs.forEach(item => { if (typeof item === "function") { item(component); } else if (item !== null && (item === null || item === void 0 ? void 0 : item.current) !== undefined) { item.current = component; } }); exports.combineRefs = combineRefs; //# sourceMappingURL=combineRefs.js.map