Get started
Requirements
⚠️
This library now needs react-native-gesture-handler to be installed inside the React Native project.
If you use Expo Go then you have nothing to do as Gesture Handler is integrated inside Expo SDK.
But if you use a Bare React Native project, please follow those instructions in first : https://docs.swmansion.com/react-native-gesture-handler/docs/fundamentals/installation/ (opens in a new tab)
Installation
With pnpm :
pnpm add react-native-ficus-uiWith npm :
npm install react-native-ficus-uiWith yarn :
yarn add react-native-ficus-uiThen, install the pods for iOS :
cd ios && pod installUsage
You need to wrap your root component inside ThemeProvider component from react-native-ficus-ui.
import { AppRegistry } from 'react-native';
import { FicusProvider } from 'react-native-ficus-ui';
import App from './src/App';
export default function Main() {
return (
<FicusProvider>
<App />
</FicusProvider>
);
}
AppRegistry.registerComponent('main', () => Main);