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 468 B
import React, { useContext } from "react"; import { useA11yEnabled } from "../../hooks"; const A11yStatusContext = /*#__PURE__*/React.createContext(false); export const useA11yStatus = () => useContext(A11yStatusContext); export const A11yStatusProvider = ({ children }) => { const status = useA11yEnabled(); return /*#__PURE__*/React.createElement(A11yStatusContext.Provider, { value: status }, children); }; //# sourceMappingURL=A11yStatusProvider.js.map