injectedJavascript: How to pass dynamic data to webview #2176
Unanswered
rashidul0405
asked this question in
Q&A
Replies: 2 comments 3 replies
-
In case someone stumbles over this: You have to wrap the variable in quotes so it's treated as a string. Like so
|
Beta Was this translation helpful? Give feedback.
1 reply
-
I do it alot inside https://github.com/linonetwo/react-native-postmessage-cat , you can look at src/react-native.ts to copy |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My function looks like below. Unable to set data from dynamic variable when tried to inject javascript. Is there any way to make it work?
${token}
and${userId}
not replaced with its value declared above.Beta Was this translation helpful? Give feedback.
All reactions