Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invarient Violation: requireNativeComponent: 'RNCWebView" was not found in the UIManger #32

Closed
godswillokokon opened this issue Jun 18, 2020 · 1 comment

Comments

@godswillokokon
Copy link

Hello, I have this error when I click on the "Pay Now" button.
Code: ` <PaystackWebView

        buttonText={"Pay Now"}
        showPayButton={true}
        paystackKey="***********"
        paystackSecretKey="******"
        amount={1000}
        billingEmail="email@gmail.com"
        billingMobile="08177024***"
        billingName="Godswill Okokon"
        ActivityIndicatorColor="green"
        SafeAreaViewContainer=""
        SafeAreaViewContainerModal=""
        handleWebViewMessage={(e) => {
          // handle the message
          console.log(e, 'message');
        }}
        onCancel={(e) => {
          // handle response here
          console.log(e, 'failed');
        }}
        onSuccess={(res) => {
          // handle response here
          console.log(res, 'success');
         }
        autoStart={false}
        textStyles={styles.buttonText}
        btnStyles={styles.button}
      />`

Package.json
`
"react": "16.11.0",

"react-native": "0.62.2",

"react-native-paystack-webview": "^3.1.9",

"react-native-webview": "8.1.2",
`
Output :
img

@godswillokokon
Copy link
Author

Solved it by running the following commands:

  1. cd android
  2. ./gradlew clean
  3. ./gradlew clean assembleDebug
  4. npx react-native run-android
  5. yarn start --reset-cache

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant