You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In new arch android, ProgressBar crashes app when long length float value is used in progress. It works with 1/2, 1/4 but not 1/3.
Error log: Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long) 33.33333333333333
It works on iOS but you have this error in xcode log, Error while converting prop 'accessibilityValue': Loss of precision during arithmetic conversion: (long long) 33.33333333333333
Expected behaviour
ProgressBar should work with long length float value in new arch on android
How to reproduce?
Create new project and enable new arch
Run this code and press buttons
const[progress,setProgress]=useState(1);<ProgressBarprogress={progress}/><ButtononPress={()=>{setProgress(1/2);}}>1/2work</Button><ButtononPress={()=>{setProgress(1/3);}}>
1/3 not work
</Button>
Current behaviour
In new arch android,
ProgressBarcrashes app when long length float value is used inprogress. It works with 1/2, 1/4 but not 1/3.Error log:
Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long) 33.33333333333333It works on iOS but you have this error in xcode log,
Error while converting prop 'accessibilityValue': Loss of precision during arithmetic conversion: (long long) 33.33333333333333Expected behaviour
ProgressBarshould work with long length float value in new arch on androidHow to reproduce?
Preview
Screen_Recording_20241107_141459.mp4
What have you tried so far?
Your Environment