We are calculating our sizing on rems using a custom function that might return multiple decimals depending on the value.
This function in a simplified way looks something like number / unit === remAmountWeWantToUse. For example a test of it results into expect(customFn(12.5, 16)).toEqual('0.78125rem');
Using this value in a EStylesheet.create({awesomeText: {lineHeight: '1.75432rem'}}) results in crashes on some Android devices. (We can reproduce it with Android simulators)
Steps to Reproduce
number / unit
===remAmountWeWantToUse
. For example a test of it results intoexpect(customFn(12.5, 16)).toEqual('0.78125rem');
EStylesheet.create({awesomeText: {lineHeight: '1.75432rem'}})
results in crashes on some Android devices. (We can reproduce it with Android simulators)Try in Expo
https://snack.expo.io/Bk9z8rF3S
Expected Behavior
Text lineHeight gets reproduced to the nearest pixel no matter what.
Actual Behavior
App crashes on some devices, (seems not dependant on device screen resolution)
Show the code
Sometimes we have seen a warning like
Using the
EStylesheet.create
.Environment