Version: 3.0.6

Install in React Native project

Create a new project#

npx react-native init AwesomeNativeBase
cd AwesomeNativeBase

Install dependencies#

yarn add native-base react-native-svg styled-components styled-system react-native-safe-area-context

Run pod install#

cd ios/
pod install

Run the Hello world example#

Put the below code in your App.js

import React from 'react';
import { NativeBaseProvider, Box } from 'native-base';
function App() {
return (
<NativeBaseProvider>
<Box>Hello world</Box>
</NativeBaseProvider>
);
}