hooks icon indicating copy to clipboard operation
hooks copied to clipboard

Propose feature: add useLinking custom hook

Open jeferson-sb opened this issue 2 years ago • 3 comments

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

jeferson-sb avatar Sep 19 '23 00:09 jeferson-sb

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?

pvinis avatar Feb 21 '25 17:02 pvinis

⚠️ 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

changeset-bot[bot] avatar Mar 13 '25 19:03 changeset-bot[bot]

@pvinis Could you take another look?

jeferson-sb avatar Mar 13 '25 19:03 jeferson-sb