The app was crashing with `"Could not find @ReactModule annotation in class RNCWebViewModule"` exception. Searching for this message in RN's code I found [this commit](0cd3994f1a/), introduced in React Native 0.58, which requires native modules to be annotated with @ReactModule annotation. 🤔 After adding the annotation to the module, tapping on a file input field no longer crashes the app (in fact it shows the file browser). 🎉 I haven't had caught it previously, testing only against React Native 0.57, sorry! 😞 For reference see similar fix in `react-native-gesture-handler` — https://github.com/kmagiera/react-native-gesture-handler/pull/295. Fixes https://github.com/react-native-community/react-native-webview/issues/458.
|
|
||
25 |
|
25 |
|
26 |
|
26 |
|
27 |
|
27 |
|
|
28 |
|
|
28 |
|
29 |
|
29 |
|
30 |
|
30 |
|
31 |
|
|
|
||
34 |
|
35 |
|
35 |
|
36 |
|
36 |
|
37 |
|
|
38 |
|
|
37 |
|
39 |
|
38 |
|
|
|
|
40 |
|
|
39 |
|
41 |
|
40 |
|
42 |
|
41 |
|
43 |
|
|
|
||
71 |
|
73 |
|
72 |
|
74 |
|
73 |
|
75 |
|
74 |
|
|
|
|
76 |
|
|
75 |
|
77 |
|
76 |
|
78 |
|
77 |
|
79 |
|