Changing the default style for a Navigator.NavigationBar (title)

前端 未结 3 586
攒了一身酷
攒了一身酷 2021-01-12 16:46

I\'ve created a navigation bar in my react-native app using the following syntax



        
3条回答
  •  伪装坚强ぢ
    2021-01-12 17:38

    What you can do is something like this :

    
     Welcome
    
    

    and in navBarTitleText style :

    position: 'absolute',
    left: 0,
    right: 0,
    backgroundColor: 'transparent',
    textAlign: 'center'
    

提交回复
热议问题