mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
Swap Platform preference for title alignment (#997)
Centered titles are generally specific to iOS, left alignment of the title appears more common in platforms outside Android and iOS. This also fits better with the rest of the conditionals that test for iOS instead of Android.
This commit is contained in:
committed by
Mike Grabowski
parent
633d4819ec
commit
1bb0b84c26
@@ -308,9 +308,9 @@ const styles = StyleSheet.create({
|
||||
right: TITLE_OFFSET,
|
||||
top: 0,
|
||||
position: 'absolute',
|
||||
alignItems: Platform.OS === 'android'
|
||||
? 'flex-start'
|
||||
: 'center',
|
||||
alignItems: Platform.OS === 'ios'
|
||||
? 'center'
|
||||
: 'flex-start',
|
||||
},
|
||||
left: {
|
||||
left: 0,
|
||||
|
||||
Reference in New Issue
Block a user