Skip to content

Commit

Permalink
Add JSDoc @returns tag for isRunningInReactNative
Browse files Browse the repository at this point in the history
  • Loading branch information
aryaemami59 committed Sep 17, 2024
1 parent 2d7f760 commit 0d1e5d6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils/useIsomorphicLayoutEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ const isDOM = /* @__PURE__ */ canUseDOM()
/**
* Checks if the code is running in a React Native environment.
*
* @returns Whether the code is running in a React Native environment.
*
* @see {@link https://github.com/facebook/react-native/issues/1331 Reference}
*/
const isRunningInReactNative = () =>
Expand Down

0 comments on commit 0d1e5d6

Please sign in to comment.