React Native error in expo client running app: Attempt to invoke virtual method 'double java.lang.Double.doubleValue()' on a null object reference - react-native

I'm hitting this Java error in the expo client on Android. With other versions of this error posted as a question here, you typically see '... on a null object reference at ...' but here I don't get the call that resulted in the exception. Can anyone help me identify where I can pull that info?
There's no errors in the console/Metro.
Running react-native sdk 34.0.0 & expo 34.0.3.
Error:
Attempt to invoke virtual method 'double
java.lang.Double.doubleValue()' on a null object reference
getDouble
ReadableNativeArray.java:4
extractArgument
JavaMethodWrapper.java:2
extractArgument
JavaMethodWrapper.java:1
invoke
JavaMethodWrapper.java:15
invoke
JavaModuleWrapper.java:2
run
NativeRunnable.java
handleCallback
Handler.java:873
dispatchMessage
Handler.java:99
dispatchMessage
MessageQueueThreadHandler.java:1
loop
Looper.java:193
run
MessageQueueThreadImpl.java:8
run
Thread.java:764

Related

getDevicePushTokenAsync error on bare workflow

I implemented push notification on managed workflow which is working properly but when I eject from managed workflow, I am getting error at line
pushToken = (await Notifications.getExpoPushTokenAsync()).data;
Error: Encountered an exception while calling native method: Exception occurred while executing exported method getDevicePushTokenAsync on module ExpoPushTokenManager: Default FirebaseApp is not initialized in this process com.luciajane.taskuser. Make sure to call FirebaseApp.initializeApp(Context) first.
I passed experienceId but still getting error?
pushToken = (await Notifications.getExpoPushTokenAsync({experienceId: "#luciajane/task-user"})).data;
I found reason. You have to setup by making new project on firebase then download google-services.json file and add that to your expo project. As expo mentioned Firebase Cloud Messaging is required for all managed and bare workflow Android apps made with Expo.For setup follow this link https://docs.expo.io/push-notifications/using-fcm/

platform.js:78 Uncaught TypeError: Class constructor Platform cannot be invoked without 'new'

I have a class written in Javascript ES2015. When I try to execute nodemon command I always see this error TypeError: Class constructor Platform cannot be invoked without 'new'
The full error is mentioned below during run time error:
[https://i.stack.imgur.com/2oB6W.png][1]
but I got Compile time success
[https://i.stack.imgur.com/oaRkj.png][1]
There is an issue in your app.module.ts file which contains a reference to platform without newing it.

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.

React - native developement server return response error code : 500

I'm building an application in react-native, everything was working fine .After npm install, react-native doesn't detect some of my files anymore saying it doesnt exist, doesn't seem to detect any changes either. I get
"Developpement server returned response error 500, unable to resolve module `../services/myFile` none of these files exist." on android and on IOS 'Failed to load Bundle with error: "unable to resolve module ./screens/anotherFile"
When I remove those files (from the files they are use in) the error is still the same. Any ideas ?
Like #firu said, make sure you do a react-native-link, this happens if you have deleted the ios or android folder. Most cases when you are upgrading react-native with react-native-upgrade

react-native 0.57.4, `_typeof3 is an instance of Object` error

I followed instruction steps to start a new project with react-native v0.57.4.
With everything installed correctly (I've re-checked a few times),
I create native project with react-native init MyProject.
but then I got this error after build iOS project:
Unhandled JS Exception: _typeof3 is not a function
(In '_typeof3(typeof Symbol === "function" ? Symbol.iterator : "##iterator")',
'_typeof3' is an instance of Object)
Did anyone have experience on this? Thanks.