hooks icon indicating copy to clipboard operation
hooks copied to clipboard

React Native APIs turned into React Hooks for use in functional React components

Results 72 hooks issues
Sort by recently updated
recently updated
newest added

Hello there, I am using the height value from useWindowDimensions in Expo. I am on an iPhone 10 so height is 812, most of the time. But there are sometimes...

Bumps [ua-parser-js](https://github.com/faisalman/ua-parser-js) from 0.7.21 to 0.7.28. Commits 1d3c98a Revert breaking fix #279 and release as 0.7.28 535f11b Delete redundant code 642c039 Fix #492 LG TV WebOS detection 3edacdd Merge branch...

dependencies

Bumps [ini](https://github.com/isaacs/ini) from 1.3.5 to 1.3.7. Commits c74c8af 1.3.7 024b8b5 update deps, add linting 032fbaf Use Object.create(null) to avoid default object property hazards 2da9039 1.3.6 cfea636 better git push script,...

dependencies

# Summary The method of using this Hook is not like React hooks and it needs to get deps in the last parameter like react hooks ```js useBackHandler(() => {...

major

# Summary This allows you to use `LayoutAnimation` in a more convenient hook api. It's mainly useful because it removes the need to explicitly enable it on Android everywhere. If...

Returns `'portrait' | 'landscape'` instead of object with two booleans. # Summary I found the `useDeviceOrientation` hook's design pretty weird. Returning an object with two booleans can be simplified to...

major

# Summary Allows user to easily dismiss the keyboard inside React Native views. Info: https://justinnoel.dev/2020/11/17/react-native-dismiss-keyboard-custom-hook/ ## Test Plan ### What's required for testing (prerequisites)? Unknown ### What are the steps...

# Summary This adds animation meta information to the `useKeyboard` hook to support implementing custom keyboard avoiding views. Solution adds a new state hook that is used to indicate the...

Initial values returned by this hook can be incorrect based od how was app started and when hook mounted. Example: App is started in `portrait`, then orientation is chaged to...

# Summary Simplifies the code, and also fixes an issue where the initial value could be stale as described in #210 ## Test Plan Will test this in a snack,...