2017-08-04 36 views
0
 <Modal transparent={false} animationType={"slide"} visible={this.props.isVisible}> 
      <WebView 
       source={this.getLandingUri()} 
       scrollEnabled={true} 
       startInLoadingState={true} 
       onLoad={this.getLoadingIndicator} 
       onNavigationStateChange={this.onNavigationStateChange} 
      /> 
     </Modal> 

我一直在使用react.native WebView來提示用戶登錄頁面,現在我想添加一個導航/狀態欄,爲用戶提供一個「完成」按鈕以及當前的域。有沒有添加導航/狀態欄到react.native WebView的方法?

下面是兩張屏幕截圖,顯示了我目前擁有的(l)和我想要擁有的(r)。

enter image description hereenter image description here

我在WebView上找不到任何相關的道具來呈現狀態欄。這可能嗎?

+0

https://stackoverflow.com/questions/42599850/how -to-prevent-layout-from-overlapping-with-ios-status-bar – iPatel

+0

這不能解決我的問題 – gen

回答