Skip to content

Android style fixes#83

Merged
guyca merged 2 commits into
wix:masterfrom
the-mx-group:android_style_fixes
Jun 24, 2016
Merged

Android style fixes#83
guyca merged 2 commits into
wix:masterfrom
the-mx-group:android_style_fixes

Conversation

@FeralAI
Copy link
Copy Markdown

@FeralAI FeralAI commented Jun 24, 2016

This update ensures navigator styles are applied on screen changes. It also merges the base styles with screen-specific styles as to allow default values that can be overridden.

RctActivity.navigatorPopToRoot({
navigatorID: navigator.navigatorID,
animated: !(params.animated !== false)
animated: !(params.animated === false)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this conditional be changed to params.animated === true?

@guyca guyca self-assigned this Jun 24, 2016
@FeralAI
Copy link
Copy Markdown
Author

FeralAI commented Jun 24, 2016

That depends on what the default behavior should be. If we're defaulting to false then the === true makes sense, since any non-true value would return false. With my change the value defaults to true for any non-false (but still falsey) value.

@guyca guyca merged commit 7133b91 into wix:master Jun 24, 2016
@FeralAI FeralAI deleted the android_style_fixes branch June 25, 2016 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants