Installation
Detailed installation instructions for the Xaui native package and its dependencies.
Prerequisites
- React Native 0.72+
- React 18+
- TypeScript 5+ (recommended)
Expo Installation (Recommended)
Xaui works seamlessly with Expo. We recommend using Expo for the best development experience:
npx create-expo-app@latest my-app
Then install Xaui packages:
npx expo install @xaui/native
Expo handles the native configuration automatically. No additional iOS or Android setup required.
React Native CLI Installation
For React Native CLI projects, install the core packages:
npm install @xaui/native @xaui/core
Peer Dependencies
Xaui requires the following peer dependencies:
npm install react-native-reanimated react-native-gesture-handler
iOS Setup
After installing pods, run:
cd ios && pod install
Android Setup
Ensure you have the following in your android/app/build.gradle:
project.ext.react = [enableHermes: true]