How to render a website as a native mobile app

iPhone 8 simulator rendering example.com website

Prerequisites

React Native

Install the Expo CLI:

npm install --global expo-cli
expo init react-native-webview-example
cd react-native-webview-example

WebView

Install React Native WebView:

npm install --save react-native-webview
npm start

Example

See GitHub repository.

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store