Skip to content
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

Handle deeplinks with Expo router v3 #231

Open
youssdevx opened this issue Feb 16, 2024 · 1 comment
Open

Handle deeplinks with Expo router v3 #231

youssdevx opened this issue Feb 16, 2024 · 1 comment

Comments

@youssdevx
Copy link

youssdevx commented Feb 16, 2024

Context

I'm working with Expo SDK 50 and Expo Router version 3.
For my marketing campaigns, I'm using a deep linking feature provided by Adjust (https://help.adjust.com/en/article/deep-links).
The deeplinks from Adjust have the format q***.adj.st.

Problem

I need to convert the Adjust deeplink before I can use it to navigate to the appropriate screen within my app.
However, with the introduction of Expo Router, I no longer have direct access to the linking prop of the NavigationContainer and to the methods getInitialURL and subscribe.
I've tried using Linking.useURL(), but I can't intercept the incoming deep link before it's processed and the app navigates to the targeted screen.

Question

How can I access the linking configuration to use customs getInitialURL and subscribe with Expo Router without having to patch node_modules/expo-router/build/link/linking.js?

image
@youssdevx
Copy link
Author

@uerceg Maybe you can help me with this issue? 🙏🏽

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant