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

injectJavaScript in not function #178

Closed
manoj2166 opened this issue Jul 31, 2018 · 4 comments
Closed

injectJavaScript in not function #178

manoj2166 opened this issue Jul 31, 2018 · 4 comments

Comments

@manoj2166
Copy link

Hi,
I am using
"react-native-wkwebview-reborn": "^1.21.0" and try to inject custom script after loaded with injectJavaScript but showing me injectJavaScript in not a function.

Please let me know how can I do it,
It is working fine when I am using default react-native webview.

@shirakaba
Copy link
Collaborator

injectJavaScript is a prop, and only a prop.

evaluateJavaScript is the function, just as it is for the real WKWebView in iOS/macOS.

Does this solve your issue?

@manoj2166
Copy link
Author

manoj2166 commented Jul 31, 2018

Hi @shirakaba,

Thanks, it is working but once call reload function it stops working.
There is one issue #164, please suggest for this

@shirakaba
Copy link
Collaborator

Can you post a minimal code example to to reproduce this?

@manoj2166
Copy link
Author

by use of evaluateJavaScript function is working fine.
I am closing this issue.
thanks

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

2 participants