UNPKG

react-native-full-responsive

Version:

Create a fully responsive React Native app for all supported platforms

17 lines (16 loc) 513 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.useDevice = void 0; var _react = require("react"); var _FRProvider = require("../context/FRProvider"); const useDevice = () => { const deviceContext = (0, _react.useContext)(_FRProvider.FRContext); if (!deviceContext) { throw new Error('the device context is not found, please use FRProvider in your root component'); } return deviceContext; }; exports.useDevice = useDevice; //# sourceMappingURL=useDevice.js.map