react-native-a11y
Version:
Improvements of a11y for ReactNative, this library improve work with reader and keyboard focus and reader in general.
14 lines • 489 B
JavaScript
import React, { useContext } from "react";
import { useA11yEnabled } from "../../hooks";
const A11yStatusContext = /*#__PURE__*/React.createContext(false);
export const useA11yStatus = () => useContext(A11yStatusContext);
export const A11yStatusProvider = _ref => {
let {
children
} = _ref;
const status = useA11yEnabled();
return /*#__PURE__*/React.createElement(A11yStatusContext.Provider, {
value: status
}, children);
};
//# sourceMappingURL=A11yStatusProvider.js.map