Installation
Install the ActionSheet with your favorite package manager:
npm install react-native-actions-sheetyarn add react-native-actions-sheetpnpm add react-native-actions-sheetbun add react-native-actions-sheetv11 requires the New Architecture
The sheet's gestures and animations run as worklets through Reanimated 4, which requires React Native's New Architecture (Fabric). If your app is still on the legacy architecture, stay on react-native-actions-sheet@10.
The library depends on react-native-reanimated, react-native-worklets, react-native-gesture-handler and react-native-safe-area-context, so make sure these are installed too.
npm install react-native-reanimated react-native-worklets react-native-gesture-handler react-native-safe-area-contextyarn add react-native-reanimated react-native-worklets react-native-gesture-handler react-native-safe-area-contextpnpm add react-native-reanimated react-native-worklets react-native-gesture-handler react-native-safe-area-contextbun add react-native-reanimated react-native-worklets react-native-gesture-handler react-native-safe-area-contextreact-native-worklets is a peer dependency, not a dependency: the library uses whichever version your app (or your Expo SDK) provides, so it can never pin a worklets version that mismatches the native one.
TIP
Follow the Reanimated, Worklets and Gesture Handler installation guides to add their Babel plugin and wrap your app in GestureHandlerRootView. Reanimated's worklets power the sheet's UI-thread gestures.
You are all set to use the ActionSheet in your project! 🎉