17
loading...
This website collects cookies to deliver better user experience
npm install --global expo-cli
expo init
cd your-app-name
expo start
When you run expo start (or npm start), Expo CLI starts Metro Bundler, which is an HTTP server that compiles the JavaScript code of our app using Babel and serves it to the Expo app. It also pops up Expo Dev Tools, a graphical interface for Expo CLI.
expo install react-native-webview
import * as React from "react";
import { WebView } from "react-native-webview";
export default class App extends React.Component {
render() {
return (
<WebView
source={{ uri: {your-website-link} }}
style={{ marginTop: 20 }}
/>
);
}
}