Install in React Native project | NativeBase | Universal Components for React and React Native

Search
K
Hire us
Please opt in to our enterprise plan (coming soon) for priority support with NativeBase. If you are starting a new project, we recommend using gluestack-ui. For your existing projects, you can utilize @gluestack-ui/themed-native-base (beta).
Install in React Native project
Create a new project
Copy
npx react-native init AwesomeNativeBase
cd AwesomeNativeBase
Install dependencies
yarn
npm
Run pod install
Copy
cd ios/
pod install
Run the Hello world example
Put the below code in your App.js
Copy
import React from "react";
import { NativeBaseProvider, Box } from "native-base";
function App() {
return (
<NativeBaseProvider>
<Box>Hello world</Box>
</NativeBaseProvider>
);
}
Nativebase logo
MadeWithNativeBase