We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isRunningInReactNative
1 parent c838d4c commit 3d2f07fCopy full SHA for 3d2f07f
src/utils/useIsomorphicLayoutEffect.ts
@@ -26,7 +26,7 @@ const isDOM = /* @__PURE__ */ canUseDOM()
26
*
27
* @see {@link https://github.com/facebook/react-native/issues/1331 Reference}
28
*/
29
-export const isRunningInReactNative = () =>
+const isRunningInReactNative = () =>
30
typeof navigator !== 'undefined' && navigator.product === 'ReactNative'
31
32
const isReactNative = /* @__PURE__ */ isRunningInReactNative()
0 commit comments