Skip to content

Commit 785e5b9

Browse files
committed
Update README.md
1 parent 83ef54d commit 785e5b9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@ An easy way to integrate your [React](https://github.com/facebook/react) app int
66

77
## Why?
88

9-
Run React app in React Native app is logically possible if you run your web code in WebView using [react-native-webview](https://github.com/react-native-webview/react-native-webview).
9+
If you'd like to run your React web app in React Native, rewriting it for React Native or using [react-native-web](https://github.com/necolas/react-native-web) is preferred way in most cases.
10+
But sometimes rewriting is overkill, when you are just prototyping, or when the app includes something not available on React Native, like rich text editor with contenteditable or complicated logic with WebAssembly.
11+
12+
So how we run React app in React Native app as it is? It's logically possible if you run your web code in WebView using [react-native-webview](https://github.com/react-native-webview/react-native-webview).
1013
However bundling React code with React Native is troublesome and implementing communication between React Native and WebView is so hard.
1114

1215
This library gives a bridge to make it easy.

0 commit comments

Comments
 (0)