Expo start error register two view "ViewManagerAdapter ExponentGLView”

Please provide the following:

  1. SDK Version: 38
  2. Platforms(Android/iOS/web/all): Android/iOS

When I start expo project, it show this error “Invariant Violation: Tried to register two views with same name ViewManagerAdapter_ExponentGLView”

  "dependencies": {
    "@react-native-community/async-storage": "^1.8.1",
    "@react-native-community/datetimepicker": "2.4.0",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-community/picker": "1.6.0",
    "axios": "^0.19.2",
    "dayjs": "^1.8.30",
    "expo": "~38.0.8",
    "expo-apple-authentication": "~2.2.1",
    "expo-av": "~8.2.1",
    "expo-barcode-scanner": "~8.2.1",
    "expo-camera": "~8.3.1",
    "expo-constants": "~9.1.1",
    "expo-device": "~2.2.1",
    "expo-facebook": "~8.2.1",
    "expo-file-system": "~9.0.1",
    "expo-font": "~8.2.1",
    "expo-gl": "~8.3.1",
    "expo-google-app-auth": "^8.1.2",
    "expo-image-picker": "~8.3.0",
    "expo-location": "~8.2.1",
    "expo-notifications": "~0.3.3",
    "expo-pixi": "^1.2.0",
    "expo-sharing": "~8.2.1",
    "expo-splash-screen": "^0.5.0",
    "expo-status-bar": "^1.0.2",
    "expo-updates": "~0.2.8",
    "geolib": "^3.3.1",
    "native-base": "^2.13.12",
    "react": "~16.11.0",
    "react-dom": "~16.11.0",
    "react-multi-lang": "^2.1.1",
    "react-native": "https://github.com/expo/react-native/archive/sdk-38.0.2.tar.gz",
    "react-native-animated-pagination-dot": "^0.1.8",
    "react-native-gesture-handler": "~1.6.0",
    "react-native-highlight-words": "^1.0.1",
    "react-native-maps": "0.27.1",
    "react-native-modal": "^11.5.6",
    "react-native-picker-select": "^7.0.0",
    "react-native-raw-bottom-sheet": "^2.2.0",
    "react-native-reanimated": "~1.9.0",
    "react-native-responsive-screen": "^1.4.1",
    "react-native-safe-area-context": "~3.0.7",
    "react-native-screens": "~2.9.0",
    "react-native-snap-carousel": "^3.9.1",
    "react-native-svg": "^12.1.0",
    "react-native-svg-transformer": "^0.14.3",
    "react-native-switch-pro": "^1.0.5",
    "react-native-web": "~0.11.7",
    "react-navigation": "^4.0.10",
    "react-navigation-stack": "^1.10.3",
    "react-navigation-tabs": "^2.7.0",
    "react-redux": "^7.2.0",
    "redux": "^4.0.5",
    "redux-persist": "^6.0.0",
    "redux-thunk": "^2.3.0",
    "validator": "^13.1.1"
  },
  "devDependencies": {
    "@babel/core": "^7.8.6",
    "@react-native-community/eslint-config": "^1.0.0",
    "@types/jest": "^26.0.5",
    "@types/react": "~16.9.41",
    "@types/react-native": "^0.62.18",
    "@types/react-native-snap-carousel": "^3.8.1",
    "@types/react-redux": "^7.1.9",
    "@typescript-eslint/eslint-plugin": "^2.27.0",
    "@typescript-eslint/parser": "^2.27.0",
    "eslint": "^6.5.1",
    "jest": "^26.1.0",
    "jest-expo": "^38.0.2",
    "prettier": "^2.0.5",
    "react-test-renderer": "^16.13.1",
    "typescript": "~3.9.5"
  },
  "private": true,
  "jest": {
    "preset": "jest-expo",
    "moduleFileExtensions": [
      "ts",
      "tsx",
      "js",
      "jsx",
      "json",
      "node"
    ],
    "moduleNameMapper": {
      "\\.svg": "<rootDir>/src/__mocks__/svgMock.js"
    },
    "testPathIgnorePatterns": [
      "/node_modules/",
      "/e2e/"
    ],
    "transformIgnorePatterns": [
      "node_modules/(?!((jest-)?react-native|react-navigation|@react-navigation/.*|@react-native-community))"
    ],
    "setupFiles": [
      "./node_modules/react-native-gesture-handler/jestSetup.js"
    ]
  }

Hey @nuengnakhap, this error usually is a result of conflicting dependency versions. I would suggest auditing your dependencies and making sure that there aren’t conflicts.

Cheers,
Adam

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.