UNPKG

react-native-a11y

Version:

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

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