question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Invalid YGJustify 'space-evenly'

See original GitHub issue

Is 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

  1. react-native init MyProject
  2. Add <View style={{ justifyContent: 'space-evenly' }} /> to App.js
  3. 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'

screen shot 2018-01-24 at 11 21 55

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
gedeagascommented, Jan 31, 2018

Submitted a PR #17805 🎉

0reactions
turnryecommented, Mar 4, 2018

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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found