Replies: 1 comment
-
I just found a trick on SO: https://stackoverflow.com/questions/46054591/change-webview-url-in-react-native that fixes the biggest problem. Still curious if other developers have better ways to handle deep links. 🙂 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
We are building a hybrid app using React Native with this webview component.
It's working great, except for handling deep links.
Currently, our deep link handling looks like this (mostly based on the official React Native docs):
This logic has a few issues, like:
url
state isn't updated?). For example:url
is unchanged, the customer stays at https://www.domain.com/ALocally I'm debugging deep links with this command
adb shell am start \ -W -a android.intent.action.VIEW \ -d "https://www.domain.com/other" com.rnwebviewtest
It feels like we're reinventing the wheel since there are many other hybrid apps without these issues.
How do you handle deep links, or does someone know about an open-source hybrid app (using
react-native-webview
) that we can use as an example?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions