Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Propose feature: add useLinking custom hook #404

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
jeferson-sb wants to merge 2 commits into react-native-community:main
base: main
Choose a base branch
Loading
from jeferson-sb:feat/use-linking

Conversation

@jeferson-sb
Copy link

@jeferson-sb jeferson-sb commented Sep 19, 2023
edited
Loading

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

  • I have tested this on a device and a simulator
  • I added the documentation in README.md
  • I updated the typed files (TS and Flow)
  • I've created a snack to demonstrate the changes: LINK HERE

pvinis reacted with heart emoji
Copy link
Member

pvinis commented Feb 21, 2025

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?

Copy link

changeset-bot bot commented Mar 13, 2025

⚠️ No Changeset found

Latest commit: 99f1ab3

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

Copy link
Author

@pvinis Could you take another look?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /