I've been trying to migrate from react-native-pdf to react-native-pdf-jsi, and I followed the Guide available on this package website. But when i try to use the component, the app errors with NativeModule: AsyncStorage is null, as you can see in this screenshot. Can anyone help me?
I already tried following the instructions in the error message, uninstalling, reinstalling, cleaning cache, but with not luck.
This is my package.json with the dependencies:
"dependencies": {
"@gorhom/bottom-sheet": "^5.1.2",
"@notifee/react-native": "^9.1.8",
"@react-native-community/datetimepicker": "^8.3.0",
"@react-native-community/netinfo": "^11.4.1",
"@react-native-firebase/analytics": "^22.2.1",
"@react-native-firebase/app": "^22.2.1",
"@react-native-firebase/crashlytics": "^22.2.1",
"@react-native-firebase/messaging": "^22.2.1",
"@react-navigation/bottom-tabs": "^7.3.10",
"@react-navigation/elements": "^2.3.8",
"@react-navigation/native": "^7.1.14",
"@react-navigation/native-stack": "^7.3.19",
"@reduxjs/toolkit": "^2.6.1",
"@shopify/flash-list": "^2.2.1",
"async-mutex": "^0.5.0",
"react": "19.0.0",
"react-hook-form": "^7.55.0",
"react-native": "0.78.0",
"react-native-blob-util": "^0.21.2",
"react-native-gesture-handler": "^2.24.0",
"react-native-mmkv": "^3.2.0",
"react-native-nitro-modules": "^0.26.4",
"react-native-pdf-jsi": "^4.4.1",
"react-native-permissions": "^5.3.0",
"react-native-reanimated": "^3.17.3",
"react-native-reanimated-carousel": "^4.0.2",
"react-native-safe-area-context": "^5.4.0",
"react-native-screens": "^4.10.0",
"react-native-svg": "^15.11.2",
"react-native-unistyles": "^3.0.7",
"react-redux": "^9.2.0",
"redux-persist": "^6.0.0"
},
"devDependencies": {
"@babel/core": "^7.25.2",
"@babel/preset-env": "^7.25.3",
"@babel/runtime": "^7.25.0",
"@react-native-community/cli": "15.0.1",
"@react-native-community/cli-platform-android": "15.0.1",
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native/babel-preset": "0.78.0",
"@react-native/eslint-config": "0.78.0",
"@react-native/metro-config": "0.78.0",
"@react-native/typescript-config": "0.78.0",
"@types/jest": "^29.5.13",
"@types/react": "^19.0.0",
"@types/react-test-renderer": "^19.0.0",
"babel-plugin-module-resolver": "^5.0.2",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-svg-transformer": "^1.5.0",
"react-test-renderer": "19.0.0",
"reactotron-react-native": "^5.1.12",
"reactotron-react-native-mmkv": "^0.2.8",
"reactotron-redux": "^3.2.0",
"typescript": "5.0.4"
}
I've been trying to migrate from react-native-pdf to react-native-pdf-jsi, and I followed the Guide available on this package website. But when i try to use the component, the app errors with NativeModule: AsyncStorage is null, as you can see in this screenshot. Can anyone help me?
I already tried following the instructions in the error message, uninstalling, reinstalling, cleaning cache, but with not luck.
This is my package.json with the dependencies: