UNPKG

react-native-a11y

Version:

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

13 lines 417 B
import React, { useContext } from "react"; const KeyboardContext = /*#__PURE__*/React.createContext(false); export const useCanBeFocused = () => useContext(KeyboardContext); export const KeyboardProvider = _ref => { let { children, value = true } = _ref; return /*#__PURE__*/React.createElement(KeyboardContext.Provider, { value: value }, children); }; //# sourceMappingURL=KeyboardProvider.js.map