"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.useIsomorphicLayoutEffect = void 0;
var _react = require("react");
var _reactNative = require("react-native");
/**
 * `useLayoutEffect` on web (and native — react-native polyfills it) but falls
 * back to `useEffect` during SSR to avoid the React warning. Bloom apps are
 * primarily Expo (no SSR), but Next.js consumers of the web bundle need this.
 */
const useIsomorphicLayoutEffect = exports.useIsomorphicLayoutEffect = _reactNative.Platform.OS === 'web' && typeof document === 'undefined' ? _react.useEffect : _react.useLayoutEffect;
//# sourceMappingURL=use-isomorphic-layout-effect.js.map