{"repo":"inokawa/react-native-react-bridge","free":true,"listed":false,"github":"https://github.com/inokawa/react-native-react-bridge","clone":"git clone https://github.com/inokawa/react-native-react-bridge.git","description":"An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView.","language":"TypeScript","stars":298,"topics":["react","react-native","react-dom","webview","metro","react-hooks","preact","expo","react-native-web","webassembly"],"license":"MIT","category":"mobile-apps","readme_excerpt":"react-native-react-bridge An easy way to integrate your React (or Preact/React Native Web) app into React Native app with WebView. [!NOTE] You may also like Expo DOM components Why? If you'd like to run your React web app in React Native, rewriting it for React Native or using react-native-web is preferred way in most cases. 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. 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. However bundling React code with React Native is troublesome and implementing communication between React Native and WebView is so hard. This library gives a bridge to make it easy. This will bundle the whole React app by some additional codes and it will be automatically re-compiled if you edit it. You rarely need to think which code you are editing for React or React Native, like isomorphic. The communication between React app and React Native app will be also simplified by this. Features - Create React (or Preact/React Native Web) app bundle for WebView automatically in build process of React Native - All JS modules (with or without JSX/TypeScript) will be bundled with esbuild. - NOTE: Only the edits in the entry file of web will invoke rebuild because of the limitation of metro's build process. - Han","default_branch":null,"files":null,"tree":[],"storefront":"/r/inokawa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/inokawa/react-native-react-bridge/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}