Saturday, November 7, 2026
HomeiOS Developmentjavascript - Invariant Violation: Aspect sort is invalid error in React Native

javascript – Invariant Violation: Aspect sort is invalid error in React Native

[ad_1]

After I’m attempting to run my react native app on my Android emulator or machine. This error is displayed on the machine or emulator.

Invariant Violation: Aspect sort is invalid: anticipated a string (for
built-in parts) or a category/operate (for composite parts)
however received: undefined. You doubtless forgot to export your element from the
file it is outlined in. otherwise you might need combined up default and named imports.

That is my App.js on the foundation of the venture

 ......
    render() {
        return (
          <Supplier retailer={retailer}>
            <Root>
              <AppRouter />
              <Spinner />
              <NotificationPopup />
              <VersionUpdate />
            </Root>
      </Supplier>
        );
    }
........

and that is my bundle.json

{
  "title": "Nub1",
  "model": "0.0.1",
  "non-public": true,
  "scripts": {
    "begin": "react-native begin",
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "check": "node node_modules/jest/bin/jest.js --watch",
    "lint": "eslint ."
  },
  "dependencies": {
    "@react-native-community/async-storage": "^1.6.1",
    "@react-native-community/cookies": "^2.0.9",
    "@react-native-community/geolocation": "^2.0.2",
    "@react-native-community/netinfo": "^4.2.1",
    "@react-native-community/push-notification-ios": "1.7.1",
    "@react-native-community/toolbar-android": "0.1.0-rc.2",
    "@sentry/react-native": "^2.5.1",
    "@stripe/stripe-react-native": "^0.1.4",
    "@unpourtous/react-native-search-list": "^2.0.10",
    "coloration": "^3.0.0",
    "create-react-class": "^15.6.3",
    "native-base": "^3.2.2",
    "react": "16.8.6",
    "react-native": "0.60.5",
    "react-native-awesome-card-io": "^0.8.2",
    "react-native-fabric": "0.5.0",
    "react-native-fbsdk": "^1.0.3",
    "react-native-firebase": "^5.5.6",
    "react-native-flexi-radio-button": "0.2.2",
    "react-native-gesture-handler": "1.8.0",
    "react-native-image-picker": "^1.1.0",
    "react-native-image-zoom-viewer": "^2.2.25",
    "react-native-mixpanel": "1.2.5",
    "react-native-onesignal": "3.7.3",
    "react-native-reanimated": "1.10.2",
    "react-native-render-html": "^4.1.2",
    "react-native-restart": "^0.0.13",
    "react-native-safe-area-context": "^3.3.2",
    "react-native-safe-area-view": "^1.1.1",
    "react-native-screens": "^2.0.0-alpha.3",
    "react-native-size-matters": "0.1.3",
    "react-native-splash-screen": "^3.2.0",
    "react-native-star-rating": "^1.1.0",
    "react-native-svg": "^12.1.1",
    "react-native-swiper": "1.5.13",
    "react-native-tracking-transparency": "^0.1.1",
    "react-native-vector-icons": "6.6.0",
    "react-native-version-check": "3.0.3",
    "react-native-webview": "^7.0.5",
    "react-navigation": "^4.0.5",
    "react-navigation-drawer": "^2.2.1",
    "react-navigation-stack": "^1.7.2",
    "react-redux": "^5.0.7",
    "react-timer-mixin": "^0.13.4",
    "redux": "^4.0.0"
  },
  "devDependencies": {
    "@babel/core": "^7.5.5",
    "@babel/runtime": "^7.5.5",
    "@react-native-community/eslint-config": "^0.0.5",
    "babel-eslint": "7.2.3",
    "babel-jest": "^24.8.0",
    "eslint": "^6.1.0",
    "eslint-plugin-flowtype": "2.35.0",
    "eslint-plugin-import": "2.7.0",
    "eslint-plugin-jsx-a11y": "6.0.2",
    "eslint-plugin-prettier": "2.1.2",
    "eslint-plugin-react": "7.1.0",
    "eslint-plugin-react-native": "3.0.1",
    "flow-bin": "0.52.0",
    "flow-typed": "^2.5.1",
    "graceful-fs": "^4.2.8",
    "husky": "0.14.3",
    "jest": "^24.8.0",
    "jetifier": "^1.6.8",
    "metro-react-native-babel-preset": "^0.56.0",
    "prettier": "1.5.3",
    "react-test-renderer": "16.8.6"
  },
  "resolutions": {
    "graceful-fs": "4.2.4"
  },
  "jest": {
    "preset": "react-native"
  },
  "rnpm": {
    "property": [
      "./assets/fonts"
    ]
  }
}

I do not know it is a native-base problem or not, as I’ve additionally tried NativeBaseProvider as an alternative of Root, as per the boards suggestion however there is no such thing as a luck in any respect.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments