stripe-react-native icon indicating copy to clipboard operation
stripe-react-native copied to clipboard

Invariant Violation: requireNativeComponent: "CardField" was not found in the UIManager.

Open TiagoX9 opened this issue 5 years ago • 4 comments

Describe the bug After i installed this package (i tried with Yarn and npm) i get this error when i try to call the CardField component. I installed the pods, and updated the repo but still happening. Using React Native CLI.

This happens only in iOS, Android seems fine.

Here is my packaje.json:

"dependencies": {
    "@gorhom/bottom-sheet": "^3",
    "@react-native-async-storage/async-storage": "^1.15.5",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-picker/picker": "^1.16.1",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@stripe/stripe-react-native": "^0.1.4",
    "axios": "^0.21.1",
    "dateformat": "^4.5.1",
    "jwt-decode": "^3.1.2",
    "prop-types": "^15.7.2",
    "react": "17.0.1",
    "react-dom": "16.13.1",
    "react-hook-form": "^7.8.3",
    "react-native": "0.64.2",
    "react-native-actions-sheet": "^0.4.9",
    "react-native-dropdown-picker": "^5.1.21",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-image-slider-box": "^1.0.12",
    "react-native-increment-decrement-button": "^1.0.0",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-reanimated": "~2.1.0",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.0.0",
    "react-native-vector-icons": "^8.1.0",
    "react-native-web": "~0.13.12",
    "react-redux": "^7.2.4",
    "reanimated-bottom-sheet": "^1.0.0-alpha.22",
    "redux": "^4.1.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.64.0",
    "react-test-renderer": "17.0.1"
  },

Screenshots Simulator Screen Shot - iPhone 12 - 2021-06-20 at 07 08 16

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Iphone 12

TiagoX9 avatar Jun 20 '21 05:06 TiagoX9

@TiagoX9 can you provide some piece of your code, to help us find and remove the cause?

arekkubaczkowski avatar Jul 01 '21 05:07 arekkubaczkowski

closing due to inactivity, please reopen if needed

arekkubaczkowski avatar Jul 26 '21 07:07 arekkubaczkowski

Describe the bug After i installed this package (i tried with Yarn and npm) i get this error when i try to call the CardField component. I installed the pods, and updated the repo but still happening. Using React Native CLI.

This happens only in iOS, Android seems fine.

Here is my packaje.json:

"dependencies": {
    "@gorhom/bottom-sheet": "^3",
    "@react-native-async-storage/async-storage": "^1.15.5",
    "@react-native-community/masked-view": "0.1.10",
    "@react-native-picker/picker": "^1.16.1",
    "@react-navigation/native": "^5.9.4",
    "@react-navigation/stack": "^5.14.5",
    "@stripe/stripe-react-native": "^0.1.4",
    "axios": "^0.21.1",
    "dateformat": "^4.5.1",
    "jwt-decode": "^3.1.2",
    "prop-types": "^15.7.2",
    "react": "17.0.1",
    "react-dom": "16.13.1",
    "react-hook-form": "^7.8.3",
    "react-native": "0.64.2",
    "react-native-actions-sheet": "^0.4.9",
    "react-native-dropdown-picker": "^5.1.21",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-image-slider-box": "^1.0.12",
    "react-native-increment-decrement-button": "^1.0.0",
    "react-native-linear-gradient": "^2.5.6",
    "react-native-reanimated": "~2.1.0",
    "react-native-safe-area-context": "3.2.0",
    "react-native-screens": "~3.0.0",
    "react-native-vector-icons": "^8.1.0",
    "react-native-web": "~0.13.12",
    "react-redux": "^7.2.4",
    "reanimated-bottom-sheet": "^1.0.0-alpha.22",
    "redux": "^4.1.0",
    "redux-devtools-extension": "^2.13.9",
    "redux-logger": "^3.0.6",
    "redux-thunk": "^2.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.12.9",
    "@babel/runtime": "^7.12.5",
    "@react-native-community/eslint-config": "^2.0.0",
    "babel-jest": "^26.6.3",
    "eslint": "7.14.0",
    "jest": "^26.6.3",
    "metro-react-native-babel-preset": "^0.64.0",
    "react-test-renderer": "17.0.1"
  },

Screenshots Simulator Screen Shot - iPhone 12 - 2021-06-20 at 07 08 16

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: Iphone 12

Same issue. in RN0.59

mppvgithub avatar Jul 26 '21 09:07 mppvgithub

@mppvgithub as I mentioned above, we need more details to be able investigate your issue. However I would suggest in your case to upgrade RN to 0.6x

arekkubaczkowski avatar Jul 26 '21 10:07 arekkubaczkowski