-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
Expect custom baseline function to not return NaN #44406
Comments
Hi guys, I am having the same issue developing with react-native, only in iOS. With this sample code you can replicate the issue:
If you delete any style line in this code (width, height, flexDirection or alignItems) the issue disappears. |
@arondn2 This did not work for me, still getting the same error. |
@rushikeshc7 that code is to replicate the error. The issue is by the style |
@arondn2 I removed all alignItems : 'baseline' from the code, still getting the same error. I don't understand why I am getting this error as it is working fine in android. |
You must identify which part of your code is generating a state like that. You must even consider the third-party components that you are using, it can be generating part of this state internally. In my case, the |
@arondn2 Thanks for the help. Your suggestions solved my issue. I made changes in style and the issue disappears. |
Still having this issue and I followed everything in this thread. The weird thing is that the only type I use those styles are during my onboarding process. Which isn't where the app crashes, it crashes once I login and go to another screen. But I don't reference |
@vinnyhoward maybe the problem is inside some third-party component |
Should we reopen this ticket? It seems like the app crashed when we use |
Yes, it's still an issue. |
Why is this closed? Just ran into this issue in RN 0.71.8, thanks @alexkander for identifying the issue so clearly. |
Agree @julian-kingman-lark this bug is live. Just hit it as desribe in 2024 now. RN 0.73 |
I tried to dig into the crash from the second comment. It's still reproducible on the current I'm not sure if that's the real cause but removing this early return prevents the crash from happening, though that looks very concidental. |
The App gets crashed when I clicked on a particular button. When I pressed that button, abort() function gets called from yoga.cpp file. The App is working fine in android, only getting this issue while running on iOS. Check the following image for reference.
It shows "Expect custom baseline function to not return NaN" this error in debug window. I am not getting why this is happening, please help me with the solution.
The text was updated successfully, but these errors were encountered: