mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-27 21:08:02 +08:00
Fix a header on Android (#437)
This commit is contained in:
@@ -220,7 +220,7 @@ class Header extends React.PureComponent<void, HeaderProps, HeaderState> {
|
||||
|
||||
// On iOS, width of left/right components depends on the calculated
|
||||
// size of the title.
|
||||
const onLayoutIOS = name === 'title'
|
||||
const onLayoutIOS = Platform.OS === 'ios' && name === 'title'
|
||||
? (e: LayoutEvent) => {
|
||||
this.setState({
|
||||
widths: {
|
||||
|
||||
Reference in New Issue
Block a user