Usage
Usage of RN Neo package in your React Native project
After installing RN Neo and its peer dependencies, you can start using
it in your project.
- Wrap your root component in
NeoProviderfromrn-neo. Do this in yourApp.jsfile:
import { NeoProvider } from 'rn-neo';
export default function App() {
return <NeoProvider>{/* Your app code */}</NeoProvider>;
}- Import the components
import { Pressable, Text } from 'rn-neo';- And use it in your app
<Pressable backgroundColor="primary">
<Text>Sign Up</Text>
</Pressable>