Looking for React Native App?
You can follow this method to eject Expo app to React Native App for Full-UI-App, Mobx-Starter-App and Redux-Starter-App.
- Install node_modules
npm i
- Eject
npm run eject
react-native link
- Goto
.babelrc
and change presets to react-native Changes to be made in setup.js:
Old Code
async componentWillMount() { await Expo.Font.loadAsync({ Roboto: require('native-base/Fonts/Roboto.ttf'), Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'), }); this.setState({ isReady: true }); }
New Code
componentWillMount() { this.setState({ isReady: true }); }
Old Code
if (!this.state.isReady) { return <Expo.AppLoading />; }
New Code
import { Spinner } from "native-base"; if (!this.state.isReady) { return <Spinner/>; }
- Remove Expo import
Run for iOS:
react-native run-ios
Run for Android:
react-native run-android