Invalid YGJustify 'space-evenly'
See original GitHub issueIs this a bug report?
Yes
Have you read the Contributing Guidelines?
Yes
Environment
Environment: OS: macOS High Sierra 10.13.2 Node: 8.7.0 Yarn: 1.3.2 npm: 5.5.1 Watchman: 4.9.0 Xcode: 9.2 (9C40b) Packages: (wanted => installed) react-native: 0.52.1 react: 16.2.0 Target Platform: iOS (11.2)
Steps to Reproduce
react-native init MyProject
- Add
<View style={{ justifyContent: 'space-evenly' }} />
toApp.js
react-native run-ios
Expected Behavior
According to https://github.com/facebook/react-native/releases/tag/v0.52.0 justifyContent: space-evenly
was introduced and should NOT crash the app.
Actual Behavior
Red error screen with error: Invalid YGJustify 'space-evenly'
Issue Analytics
- State:
- Created 6 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
justifyContent: 'space-evenly' in React Native - Stack Overflow
justifyContent: 'space-evenly' is available in React Native 0.54.0+. You can use the feature as you would any other justifyContent value.
Read more >https://unpkg.com/react-native-windows@0.0.0-canar...
... return iter->second.get(); } void NativeUIManager::DirtyYogaNode(int64_t tag) ... if (key == "justifyContent") { YGJustify justify = YGJustifyFlexStart; ...
Read more >C++ (Cpp) dynamic::isString Examples, folly - C++ (Cpp) Code ...
YGJustify yogaStyleJustifyFromDynamic(const folly::dynamic &value) { assert(value. ... isString()) { return KindOfInvalid; } // If you hit this assert, ...
Read more >https://repo.yona.io/thorwel.theminerva/git-test/r...
integerValue; if (RCT_DEBUG && index < 0) { RCTLogError(@"Invalid index value %lld. ... YGFlexDirectionColumn, intValue) RCT_ENUM_CONVERTER(YGJustify, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Submitted a PR #17805 🎉
Owning up to this – I mistook this entry. Will update the 0.52 changelog to reflect that this was foundational work rather than ready for use. Sorry!