UNPKG

react-native-full-responsive

Version:

Create a fully responsive React Native app for all supported platforms

10 lines 361 B
import { useContext } from 'react'; import { FRContext } from '../context/FRProvider'; export const useDevice = () => { const deviceContext = useContext(FRContext); if (!deviceContext) { throw new Error('the device context is not found, please use FRProvider in your root component'); } return deviceContext; }; //# sourceMappingURL=useDevice.js.map