react-native-a11y
Version:
Improvements of a11y for ReactNative, this library improve work with reader and keyboard focus and reader in general.
8 lines • 316 B
JavaScript
export 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;
}
});
//# sourceMappingURL=combineRefs.js.map