Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expo 52: Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long) #319

Open
serolgames opened this issue Nov 22, 2024 · 3 comments

Comments

@serolgames
Copy link

On expo 52 when I compress any image I get the error : "Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long)"

It happens on Android (I didn't test on IOS tho)

React Native Version

0.76.2

React Native Compressor Version

1.9.0

@PavelPolyakov
Copy link

PavelPolyakov commented Nov 26, 2024

I have the same error.

I don't even know where does it happen. But yes, it started to happen after I updated the app to v52.

image

In my case this error was caused by zIndex, I used react-native-ui-lib for View:

<View
        style={{
           position: "absolute",
           top: 0,
           left: 0,
           right: 0,
           bottom: 0,
          //zIndex: Math.round(Number.MAX_VALUE),
          pointerEvents: "none",
        }}
      >

It works if I change that to zIndex: Number.MAX_SAFE_INTEGER

@muhammad-kumail
Copy link

In my case it's occurring in iOS, Android working fine. And yeah removing zindex fixed issue.

@serolgames
Copy link
Author

Hello,
I don't understand, what does your has anything to do with the method compress() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants