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

Search
K
Hire us
If you are starting a new project, please try gluestack-ui for better performance and new design.
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
Gluestack logo
gluestack-ui