在app.json中设置 “navigationStyle”: “custom”
"window":{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#ffffff",
"navigationBarTitleText": "",
"navigationBarTextStyle":"black",
"navigationStyle": "custom"
},
注意事项:
这个属性会把所有页面的默认导航都去掉,需要单独写导航barTitle;