UNPKG

react-native-a11y

Version:

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

14 lines 511 B
import React, { useContext } from "react"; import { useKeyboardConnected } from "../../hooks"; const A11yKeyboardContext = /*#__PURE__*/React.createContext(false); export const useKeyboardStatus = () => useContext(A11yKeyboardContext); export const A11yStatusKeyboard = _ref => { let { children } = _ref; const status = useKeyboardConnected(); return /*#__PURE__*/React.createElement(A11yKeyboardContext.Provider, { value: status }, children); }; //# sourceMappingURL=A11yStatusKeyboard.js.map