@react-navigation/core
Version:
Core utilities for building navigators
12 lines (11 loc) • 449 B
JavaScript
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.useIsomorphicLayoutEffect = void 0;
var _react = require("react");
/**
* Use `useEffect` during SSR and `useLayoutEffect` in the browser to avoid warnings.
*/
const useIsomorphicLayoutEffect = exports.useIsomorphicLayoutEffect = typeof document !== 'undefined' ? _react.useLayoutEffect : _react.useEffect;
//# sourceMappingURL=useIsomorphicLayoutEffect.js.map
;