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

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

Open
evgenijchul opened this issue Nov 27, 2024 · 0 comments

Comments

@evgenijchul
Copy link

There is an issue when using the library with the latest version of React Native (currently 0.76.3),
"react-native-screens": "^4.3.0" and last version @react-navigation

When building the Android version, an error occurs:
Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long)
image

The problem disappears if you set integer values in the header sizes:

<Stack.Navigator
          screenOptions={{
            headerTitleStyle: {
              fontSize: ms(16) <-- use Math.round(ms(16)) for example
            }
          }}
 >
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

1 participant