-
Notifications
You must be signed in to change notification settings - Fork 2.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
folly::toJson: JSON object value was a Nan or INF #115
Comments
Hi @shexiaoheng. I'm seeing this too, although without trying to set any component styles. Can you please post some more details about your environment? npm, node versions, plus the node packages you have installed? Thanks J |
Thanks @shexiaoheng. This is what I see with This was actually occurring for me because of styles (applied to a parent component). Having worked through the different permutations, perhaps you can verify a few test cases to see if your behaviour matches mine exactly? This behaviour occurs for both |
@smallsaucepan yes , and i used |
Tried this on ios too. It has the same problem, although it did provide more of a clue as to what was happening. At some point ScrollableTabView._handleLayout is called with a layout event. On ios that event arrives with the following values: I'm only guessing, but presumably at some point those values are causing whacky math to happen, which ultimately causes a problem when serialising. I also took a step back, and am wondering what is your expectation for the behaviour of alignItems center for the container? Although using center probably shouldn't error out like that, on |
I'm just curious ,such use |
Im seeing this as well with "react-native-scrollable-tab-view": "^0.3.4" and react-native@0.17.0 |
I'm seeing this too with just |
I had the same issue when I adding a ViewPagerAndroid inside into a tabbar. `var {height, width} = Dimensions.get('window');
|
Hi , I have faced the same issue when nesting Scrollable-Tab-View within another Scrollable-Tab-View . STV Version : react-native-scrollable-tab-view@0.4.0 and Second problem is even if it works , Nested ScrollableTabViews dont work properly. (For which i will file another bug in a moment.) |
I just wanted to comment, slightly off topic, that there is a similar issue using ViewPagerAndroid that is resolved, as @liaq192 mentions, by removing |
Why the bug is closes? |
I also have this problem. RN 0.32 |
Closing as this issue is very old, feel free to open a new issue if its still happening in the latest release |
error occurred " folly::toJson: JSON object value was a Nan or INF " in android
when i used the prop " alignItems: 'center' " , the error occurs .
The text was updated successfully, but these errors were encountered: