Skip to content

Commit 55b759d

Browse files
committed
readme
1 parent 72ffe15 commit 55b759d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ const options = {
130130
131131
#### Why is it done this way?
132132
133-
There may be a better way to do this, so please open an issue if you have a suggestion. Passing javascript functions to the webview is tricky, so the current solution is to pass them as strings into WebView's `injectedJavaScript` prop. This means if you're also supporting web, you need to duplicate each function to support both web and iOS/Android. You could argue that you can try something like, `function.toString()`, but in iOS build `toString()` does not actually return the javascript source code, so it won't work.
133+
There may be a better way to do this, so please open an issue if you have a suggestion. Passing javascript functions to the webview is tricky, so the current solution is to pass them as strings into WebView's `injectedJavaScript` prop. You might suggest doing something like, `function.toString()`, but in iOS build `toString()` does not actually return the javascript source code, so it won't work.
134134

135135
## Demo app
136136

0 commit comments

Comments
 (0)