react-native-community / hooks

React Native APIs turned into React Hooks for use in functional React components
ISC License
3.47k stars 199 forks source link

Propose feature: add useLinking custom hook #404

Open jeferson-sb opened 1 year ago

jeferson-sb commented 1 year ago

Summary

Hey folks, I'm proposing this new hook to deal with urls built around the native Linking API and some other methods if useful. I've tested in a real app and seems to work fine but also included some tests.

Test Plan

What's required for testing (prerequisites)?

yarn and yarn test

What are the steps to reproduce (after prerequisites)?

Compatibility

OS Implemented
iOS
Android
Web not sure

Checklist