Installation

Install Silk Dropdown with Reanimated 4 and worklets.

Install the package with Reanimated 4 and worklets.

npm / yarn

npm install react-native-silk-dropdown react-native-reanimated react-native-worklets

yarn add react-native-silk-dropdown react-native-reanimated react-native-worklets

Expo

npx expo install react-native-silk-dropdown react-native-reanimated react-native-worklets

Follow Reanimated’s getting started guide for Babel setup, then restart Metro.

Bare React Native

npm install react-native-silk-dropdown react-native-reanimated react-native-worklets
cd ios && pod install

Rebuild the native app after installing peers.

Optional peer

For accurate safe-area insets (especially on notched devices), install react-native-safe-area-context and wrap your tree with SafeAreaProvider.

Requirements

PackageVersion
react-nativeNew Architecture
react-native-reanimated≥ 4.0.0
react-native-workletsrequired with Reanimated 4
react-native-safe-area-contextoptional