For example from 'Image' component
import { Image, PropTypes, StyleSheet } from 'react-native'
The idea is that you write code importing from React-Native (so that it will run on Android / iOS), but when you're building your app for the browser, you alias the react-native module to instead point at the react-native-web module.
You can see the webpack config which enables that here
Most helpful comment
The idea is that you write code importing from React-Native (so that it will run on Android / iOS), but when you're building your app for the browser, you alias the
react-nativemodule to instead point at thereact-native-webmodule.You can see the webpack config which enables that here