-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
ProgressBar crashes app in new arch on android #4544
Comments
same problem as Sharcoux/slider#102. u can just patch package the accessibilityvalur with a math. round |
Uppp, same problem! I tried the solution above, but still have the same problem. |
@AlenMartinez ProgressBar expects progress value between 0 and 1. |
Unfortunately I don't have a lot of time to investigate before next week but I face the same issue when I wanted to upgrade to expo 51 to 52. I'm using my iOS device (Iphone 14 Pro) iOS Beta 18.2 But I manage to make thing work using the props |
Currently, I'm working on a new arch support and this issue going to be fixed as part of the work |
Warning: Error: Exception in HostFunction: Loss of precision during arithmetic conversion: (long long) 52.493322164093 This error is located at: in RCTView (created by View) in View (created by ProgressBar) in ProgressBar (created by Importer) in RCTView (created by View) in View (created by Styled(View)) in Styled(View) (created by Importer) in Importer (created by SceneView) in StaticContainer callstack/react-native-paper#4544 facebook/react-native#47635
Current behaviour
In new arch android,
ProgressBar
crashes 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.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 androidHow to reproduce?
Preview
Screen_Recording_20241107_141459.mp4
What have you tried so far?
Your Environment
The text was updated successfully, but these errors were encountered: