facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
117.75k stars 24.16k forks source link

java.lang.ClassCastException: com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.Double #39210

Closed LeviDanCoder closed 12 months ago

LeviDanCoder commented 12 months ago

Description

I am using a Kotlin mutiplatform library on react native. Everything works fine on react native on iOS and web, but on IOS am have the following error:

Exception in native call
java.lang.ClassCastException: com.facebook.react.bridge.ReadableNativeMap cannot be cast to java.lang.Double
    at com.facebook.react.bridge.ReadableNativeArray.getDouble(ReadableNativeArray.java:92)
    at com.facebook.react.bridge.JavaMethodWrapper$2.extractArgument(JavaMethodWrapper.java:46)

Implementation details on the failure place on kotlin multiplaform failure.

React Native Version

0.67.5

Output of npx react-native info

-

Steps to reproduce

Snack, screenshot, or link to a repository

![Uploading Screenshot_20230830_152737.png…]()

github-actions[bot] commented 12 months ago
:warning: Too Old Version of React Native
:information_source: It looks like your issue or the example you provided uses a Too Old Version of React Native.

Due to the number of issues we receive, we're currently only accepting new issues against one of the supported versions. Please upgrade to latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If you cannot upgrade, please open your issue on StackOverflow to get further community support.
github-actions[bot] commented 12 months ago
:warning: Missing Reproducible Example
:information_source: We could not detect a reproducible example in your issue report. Please provide either:
  • If your bug is UI related: a Snack
  • If your bug is build/update related: use our Reproducer Template. A reproducer needs to be in a GitHub repository under your username.
mudassir333 commented 8 months ago

How we can trace this kind of error in more detail?