node.js – Error while running React native App on IOS 16

0
193


Invariant Violation: Native module cannot be null.

constructor
    NativeEventEmitter.js:36:16
<global>
    ReanimatedEventEmitter.js:4:38
loadModuleImplementation
    require.js:322:6
<global>
    AnimatedCall.js:2
loadModuleImplementation
    require.js:322:6
<global>
    AnimatedDebug.js:5
loadModuleImplementation
    require.js:322:6
<global>
    base.js:10
loadModuleImplementation
    require.js:322:6
<global>
    Easing.js:1
loadModuleImplementation
    require.js:322:6
<global>
    Animated.js:2
loadModuleImplementation
    require.js:322:6
<global>
    Drawer.js:8
loadModuleImplementation
    require.js:322:6
<global>
    DrawerView.js:13
loadModuleImplementation
    require.js:322:6
<global>
    createDrawerNavigator.js:5
loadModuleImplementation
    require.js:322:6
<global>
    index.js:6
loadModuleImplementation
    require.js:322:6
<global>
    Store.js:5
loadModuleImplementation
    require.js:322:6
<global>
    Router.js:4
loadModuleImplementation
    require.js:322:6
<global>
    index.js:2
loadModuleImplementation
    require.js:322:6
<global>
    router.js:10
loadModuleImplementation
    require.js:322:6
<global>
    App.js:12
loadModuleImplementation
    require.js:322:6
<global>
    index.js:6
loadModuleImplementation
    require.js:322:6
guardedLoadModule
    require.js:201:45
global code
    index.bundle?platform=ios&dev=true&minify=false:204766:4

This is the error could anyone help me with this ?

I have tried updating the navigation packages and react native to the latest

"dependencies": {
    "@react-native-community/art": "^1.0.3",
    "@react-native-community/async-storage": "^1.6.2",
    "@react-native-community/netinfo": "^4.6.0",
    "@sentry/react-native": "^1.2.0",
    "axios": "^0.19.0",
    "lodash": "^4.17.15",
    "moment": "^2.24.0",
    "react": "^16.9.0",
    "react-native": "^0.61.3",
    "react-native-animatable": "^1.3.3",
    "react-native-camera": "^3.16.0",
    "react-native-code-push": "^5.6.0",
    "react-native-document-picker": "^3.2.4",
    "react-native-enhanced-popup-menu": "^0.6.1",
    "react-native-firebase": "^5.6.0",
    "react-native-gesture-handler": "^1.10.3",
    "react-native-image-base64": "^0.1.4",
    "react-native-image-pan-zoom": "^2.1.11",
    "react-native-image-picker": "^1.1.0",
    "react-native-image-resizer": "^1.2.0",
    "react-native-image-zoom-viewer": "^2.2.27",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-modal": "^11.5.3",
    "react-native-modal-datetime-picker": "^7.6.0",
    "react-native-modal-dropdown": "^0.7.0",
    "react-native-progress": "^4.0.1",
    "react-native-reanimated": "^1.13.4",
    "react-native-router-flux": "^4.0.6",
    "react-native-share": "^3.0.0",
    "react-native-skeleton-placeholder": "^1.0.3",
    "react-native-snackbar": "^2.0.3",
    "react-navigation-drawer": "^2.7.2",
    "react-navigation-tabs": "^2.11.2",
    "react-redux": "^7.1.1",
    "redux": "^4.0.4",
    "redux-thunk": "^2.3.0",
    "rn-fetch-blob": "^0.12.0"
  },
  "devDependencies": {
    "@babel/core": "7.6.4",
    "@babel/runtime": "7.6.3",
    "@react-native-community/eslint-config": "0.0.3",
    "babel-jest": "24.9.0",
    "eslint": "6.6.0",
    "jest": "24.9.0",
    "metro-react-native-babel-preset": "0.66.2",
    "react-test-renderer": "16.9.0"
  },
  "jest": {
    "preset": "react-native"
  }

These are the packages used been stuck from a day on this. I had issues while updating the code but this should have worked the error is after the app is installed i am planning to update the packages but for that i need to run the app first.