Skip to main content

Installation Guide

Setup and platform notes. Quick Start is in the Overview page.

Requirements

  • React Native 0.78.0+ (New Architecture enabled)
  • React Native Reanimated 4.0+
  • React Native Worklets 0.6+
  • iOS: Xcode 14.0+
  • Android: Android Studio with NDK

Installation

1. Install dependencies

# Install the gradient library
npm install react-native-nitro-gradients

# Install required peer dependencies
npm install react-native-nitro-modules react-native-reanimated react-native-worklets

# For iOS
cd ios && pod install

2. Enable New Architecture

React Native Nitro Gradients requires the New Architecture to be enabled. By default its enabled in React Native 0.78.0+

4. Build your app

# android
yarn run android

# ios
yarn run ios