Ali Shah
Ali Shah

Reputation: 1

TypeError: _reactNative.NativeModules.RNCWe(...)ouldStartLoadWithRequestCallback is not a function (it is undefined), js engine: hermes

I am Using Safepay (@sfpy/react-native-sdk) sandbox environment for testing which is dependent on react-native-WebView everything is working fine the Dummy card Details, Dummy Payment ,But when its close the web window its shows error as 'TypeError: _reactNative.NativeModules.RNCWe(...)ouldStartLoadWithRequestCallback is not a function (it is undefined), js engine: hermes' , its related to react-native-WebView.

thats my payment working: ` <SafepayCheckout

            amount={500}
            clientKey="*************************"
            currency="PKR"
            environment={environment.SANDBOX}
            order_id="12345"
            buttonStyle={styles.button}
            buttonTheme={theme.LIGHT}
            onPaymentCancelled={() => alert('Payment Cancelled!')}
            onPaymentComplete={() => alert('Payment Successfull')}
            onErrorFetchingTracker={() => alert('error fetching tracker id')}
          />`

thats my package.json { "dependencies": { "@expo/metro-runtime": "~3.1.3", "@react-native-async-storage/async-storage": "1.21.0", "@react-native-firebase/app": "^19.2.2", "@react-native-firebase/auth": "^19.2.2", "@react-native-firebase/storage": "^19.2.2", "@react-native-google-signin/google-signin": "^11.0.1", "@react-navigation/bottom-tabs": "^6.5.20", "@react-navigation/drawer": "^6.6.15", "@react-navigation/material-top-tabs": "^6.6.13", "@react-navigation/native": "^6.1.17", "@react-navigation/native-stack": "^6.9.26", "@reduxjs/toolkit": "^2.2.3", "@sfpy/react-native-sdk": "^2.0.2", "escape-string-regexp": "^5.0.0", "expo": "~50.0.14", "expo-dev-client": "^3.3.11", "expo-font": "^11.10.3", "expo-image-picker": "^14.7.1", "expo-status-bar": "^1.11.1", "invariant": "^2.2.4", "libphonenumber-js": "^1.10.60", "query-string": "^9.0.0", "react": "18.2.0", "react-dom": "18.2.0", "react-native": "0.73.6", "react-native-app-intro-slider": "^4.0.4", "react-native-country-codes-picker": "^2.3.5", "react-native-dialog": "^9.3.0", "react-native-element-dropdown": "^2.10.4", "react-native-elements": "^3.4.3", "react-native-gesture-handler": "~2.14.0", "react-native-gifted-chat": "^2.4.0", "react-native-international-phone-number": "^0.7.6", "react-native-linear-gradient": "^2.8.3", "react-native-pager-view": "6.2.3", "react-native-progress": "^5.0.1", "react-native-ratings": "^8.1.0", "react-native-reanimated": "~3.6.2", "react-native-reanimated-skeleton": "^1.5.1", "react-native-responsive-dimensions": "^3.1.1", "react-native-safe-area-context": "4.8.2", "react-native-screens": "~3.29.0", "react-native-swiper": "^1.6.0", "react-native-tab-view": "^3.5.2", "react-native-toast-message": "^2.2.0", "react-native-vector-icons": "^10.0.3", "react-native-web": "~0.19.6", "react-native-webview": "13.6.4", "react-redux": "^9.1.1" }, "devDependencies": { "@babel/core": "^7.20.0" } }

Well Everything is working fine its just something that causing error at window closing .It should work without error. I am using expo so considered it as native code but the even Build does not work for me.

Upvotes: 0

Views: 72

Answers (0)

Related Questions