React-Native icon indicating copy to clipboard operation
React-Native copied to clipboard

Unable to use the latest version with expo

Open humanityjs opened this issue 1 year ago • 8 comments

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

  • API Version:
  • Environment:
  • Browser:
  • Language:

Additional Information

humanityjs avatar Jun 16 '23 11:06 humanityjs

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

kpose avatar Jun 22 '23 12:06 kpose

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

humanityjs avatar Jun 22 '23 12:06 humanityjs

I am experiencing the same issue

BenGabriel avatar Jul 11 '23 10:07 BenGabriel

@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"

Gentlekboy avatar Aug 15 '23 13:08 Gentlekboy

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

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

Coding-Algorithm avatar Sep 18 '23 14:09 Coding-Algorithm

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

amalikmuhd avatar Oct 05 '23 02:10 amalikmuhd

@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.

HERYORDEJY avatar Feb 13 '24 11:02 HERYORDEJY

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 },

raphaelobinna avatar Aug 18 '24 04:08 raphaelobinna