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 Oct 1, 2024
1 parent a5116cc commit a57b879
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 a57b879

Please sign in to comment.