CRAlpha / CRAlpha/react-native-wkwebview

Consider changing the type of injectJavaScript from string to function ?

Open
#175 0 comments 1 reaction 0 assignees View on GitHub
Dominant language
Objective-C
Stars
637
Forks
263
PR merge metrics
No merged PRs in 30d

Description

The type of prop `injectJavaScript` is string on iOS, but webview's `injectJavaScript ` is function.

This leads to a warning on Android as follows if use same codes.
```
Failed prop type: Invalid prop `injectJavaScript` of type `string` supplied to `WebView`, expected `function`
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.