| sidebar_position | 1 |
|---|---|
| sidebar_label | Installation & Setup |
Depending on what module you need, install one or both of the packages:
yarn add @react-native-documents/pickeryarn add @react-native-documents/viewerThe packages are designed to support last 3 stable versions of RN. However, they very likely work with RN 0.76 and up.
:::info
These packages cannot be used in "Expo Go" because they include custom native code.
However, you can add custom native code to an Expo app through a development build. That is the officially recommended approach for building Expo apps. See the commands below to do this.
:::
# install the package first
# Build the app locally
expo prebuild --clean
expo run:ios
expo run:androidInstall the package and then run pod install from the ios directory. Then rebuild your project with Xcode.
If you're using the New Architecture, it's strongly recommended to use the latest stable release of RN.