Console Warning in React Native - react-native

I'm with my react native app and when I run it I get the following error:
Failed prop type: Invalid prop `source` supplied to `Image`, expected one of type[number].
In the react.development.js file:
Function.prototype.apply.call(console[level], console, argsWithFormat);
^

Please provide the source code where the Image component is used.
Double-check the syntax towards the docs: https://reactnative.dev/docs/image

Related

WalletConnectProvider from react-native-dapp not working

I am trying to implement a functionality in my react-native app where in I can connect my app with metamask or any other non-custodial wallet app. The library I am using for this is https://www.npmjs.com/package/#walletconnect/react-native-dapp.
The following is the code snippet:
<WalletConnectProvider
redirectUrl={Platform.OS === 'web' ? window.location.origin : 'yourappscheme://'}
storageOptions= {{
asyncStorage AsyncStorage,
}}>
<>{/* awesome app here */}</>
</WalletConnectProvider>
However, when I try to run the app, it shows the following errors:
TypeError: undefined is not an object (evaluating '_$$_REQUIRE(_dependencyMap[0], "./providers").WalletConnectProvider')
Error: Requiring module "node_modules\#walletconnect\react-native-dapp\dist\providers\index.js", which threw an exception: TypeError: Object prototype may only be an Object or null.
Any idea why this issue?
I was facing the issues due to the use of npx rn-nodeify --install --hack.
Tried using "node-libs-react-native" inside the devDependencies as suggested at
https://github.com/WalletConnect/walletconnect-monorepo/issues/753

Adding #bam.tech/react-native-batch to a fresh new react native project does not work

I try to yarn add #bam.tech/react-native-batch but I got the following error:
node_modules/#bam.tech/react-native-batch/android/src/main/java/tech/bam/RNBatchPush/RNUtils.java:113: error: no suitable method found for put(String, batchEventData.put(key, URI.create(valueMap.getString("value")));
and
node_modules/#bam.tech/react-native-batch/android/src/main/java/tech/bam/RNBatchPush/RNBatchModule.java:529: error: no suitable method found for setAttribute(String, editor.setAttribute(key, URI.create(url));
while doing yarn android (no error on iOS)
I am using react 18 and *react-native 0.69.1

react-native-signature-canvas not working properly in expo IOS

react-native-signature-canvas is not working properly in Expo, it throws an error "Unable to open URL".
I am using package of react-native-signature-canvas signature using env Expo.
What is going on here? I just simply copy and paste this code from React Native Signature Component based Canvas for Android && IOS && expo.
I used the same code example provided on above page.
Error Message:
RemoteConsole.js:80 Possible Unhandled Promise Rejection (id: 0):
Error: Unable to open URL: ReactABI32_0_0-js-navigation://postMessage?data%253Aimage%252Fpng%253Bbase64%252CiVBORw0KGgoAAAANSUhEUgAAAuQAAAVWCAYAAAD ... YII%253D
I solved this error, this error throws because of remote debugger is on after i stop remote debugging it works fine.

Invariant Violation Native component for "RCTCustomWebView" does not exist

Please help me to solve my problem as below :
Invariant Violation Native component for RCTCustomWebView does not exist
This error is located at:
in RCTCustomWebView (at WebView.android.js:296)
If you're getting Invariant Violation: Native component for "XXXXXXXXXXXX does not exist" it likely means you forgot to run react-native link or there was some error with the linking process.
Try this :
react-native link your-fresh-installed-module-here

get undefined is not an object when trying to stripe.init

I am trying to use tipsi-stripe and when calling stripe.init I am getting the following error
Code
import stripe from 'tipsi-stripe'
stripe.init({
publishableKey: 'key',
// merchantId: 'merchant_id', // Optional
})
Error
I have seen this error before when I forgot to link native modules. It seems like you have not linked a native module.
Make sure you do
react-native link tipsi-stripe
or
rnpm link