react-native-size-matters icon indicating copy to clipboard operation
react-native-size-matters copied to clipboard

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

Open evgenijchul opened this issue 1 year ago • 0 comments

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
            }
          }}
 >

evgenijchul avatar Nov 27 '24 12:11 evgenijchul