Propose feature: add useLinking custom hook
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
- [x] I have tested this on a device and a simulator
- [x] I added the documentation in
README.md - [x] I updated the typed files (TS and Flow)
- [ ] I've created a snack to demonstrate the changes: LINK HERE
Two of three things in this hook seem to be just a call to Linking.something, which I don't think is very useful. Maybe this could be a deeplink-specific hook?
⚠️ No Changeset found
Latest commit: 99f1ab31cf5838fd2a5e4e83892b2cae5a009b6d
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR
@pvinis Could you take another look?