React-Native
React-Native copied to clipboard
Unable to use the latest version with expo
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.
Steps to Reproduce
- Install Webview using
npx expo install react-native-webview
- install Flutterwave package using
yarn add flutterwave-react-native
- 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
hello @humanityjs , you need to install react-native-webview in your project. More info.
Hi @kpose . I have the latest version of react-native-webview installed.
I am experiencing the same issue
@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"
Please, can I anyone assist with the correct implementation syntax..
I followed the documentation but there is no popup showing..
Sure @Coding-Algorithm , what are you using react native or expo?
@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.
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 },