Skip to content
Docs
Getting Started

Get started

Installation

With pnpm :

pnpm add react-native-ficus-ui

With npm :

npm install react-native-ficus-ui

With yarn :

yarn add react-native-ficus-ui

Then, install the pods for iOS :

cd ios && pod install

Usage

You need to wrap your root component inside ThemeProvider component from react-native-ficus-ui.

import { AppRegistry } from 'react-native';
import { ThemeProvider } from 'react-native-ficus-ui';
 
import App from './src/App';
 
export default function Main() {
  return (
    <ThemeProvider>
      <App />
    </ThemeProvider>
  );
}
 
AppRegistry.registerComponent('main', () => Main);