2017-06-16 65 views

回答

1

我发现设置StackNavigator风格的解决方案。请参阅elevation属性。但它的工作只到react-navigation版本1.0.0-beta.7

StackNavigator.navigationOptions = { 
    title: 'Blabla', 
    header: { 
    tintColor: Colors.navbarTintColor, 
    style: { 
     elevation: 0, 
     backgroundColor: Colors.surfacePrimary, 
    }, 
    right: this.renderContexMenu(), 
    }, 
} 

后期版本使用headerStyle代替header