Flutterwave / React-Native

React Native library for Flutterwave for Business (F4B) v2 and v3 APIs.
https://developer.flutterwave.com/
MIT License
6 stars 13 forks source link

Unable to use the latest version with expo #68

Open humanityjs opened 1 year ago

humanityjs commented 1 year ago

Have you read our Code of Conduct? By filing an Issue, you are expected to comply with it, including treating everyone with respect.

Description

I am getting this error after installing theflutterwave-react-native package in my expo project.

Screenshot 2023-06-16 at 11 57 57 AM

Steps to Reproduce

  1. Install Webview using npx expo install react-native-webview
  2. install Flutterwave package using yarn add flutterwave-react-native
  3. The app should crash and the error above should pop up.

Expected behaviour

Should work as expected.

Actual behaviour

It fails to work and crashes the app.

Reproduces how often

Configuration

Additional Information

kpose commented 1 year ago

hello @humanityjs , you need to install react-native-webview in your project. More info.

humanityjs commented 1 year ago

Hi @kpose . I have the latest version of react-native-webview installed.

BenGabriel commented 1 year ago

I am experiencing the same issue

Gentlekboy commented 1 year ago

@BenGabriel I fixed this by upgrading my react-native-webview library from "react-native-webview": "11.18.1" to "react-native-webview": "^13.3.1"

Coding-Algorithm commented 11 months ago

Please, can I anyone assist with the correct implementation syntax..

I followed the documentation but there is no popup showing..

amalikmuhd commented 11 months ago

Sure @Coding-Algorithm , what are you using react native or expo?

HERYORDEJY commented 6 months ago

@amalikmuhd Expo. In my case, the payment modal loads up. But when I cancel the payment process, it closes the modal and then Expo crashes.

raphaelobinna commented 3 weeks ago

Your issue is due to the version of RNCWebview you have, even if you install react-native-web-view, when your flutter wave package is installing, it can install a different version from what is specified in their dependency. To check this you can run

npm ls react-native-webview

to force all packages to use the same version of react-native-web-view

In your package.json, you can add

"resolutions": { "react-native-webview": "13.8.6" // or change to your expected version },