January 2019
Intermediate to advanced
592 pages
14h 30m
English
Setting up Native Base in an app created with Expo is as simple as installing the required dependencies with npm or yarn. First, we can create the app using the Expo CLI on the command line:
expo init native-base
Once the app is created, we can cd into it and install the dependencies for NativeBase with npm:
npm install native-base @expo/vector-icons --saveAlternatively, you can use yarn:
yarn add native-base @expo/vector-icons
When using NativeBase with Expo, the NativeBase documentation recommends loading fonts asynchronously with the Expo.Font.loadAsync method in the componentWillMount method in the App.js component. We'll cover how to do this in the appropriate step in the How to do it... section of this recipe. ...
Read now
Unlock full access