@@ -52,13 +52,27 @@ export default class index extends React.Component<Props, State> {
5252 componentDidMount ( ) : void {
5353 const { configStore } = this . context ;
5454 configStore . showLoading ( ) ;
55+
56+ StatusBar . pushStackEntry ( {
57+ animated : false ,
58+ showHideTransition : 'fade' ,
59+ backgroundColor : 'white' ,
60+ barStyle : 'light-content' ,
61+ translucent : true ,
62+ hidden : false ,
63+ networkActivityIndicatorVisible : false
64+ } ) ;
65+ }
66+
67+ onWillFocus = ( ) => {
68+ StatusBar . setHidden ( false ) ;
5569 }
5670
5771 componentWillUnmount ( ) {
5872 const { configStore } = this . context ;
5973 configStore . hideLoading ( ) ;
6074 // this.props.configStore.hideLoading();
61- StatusBar . setHidden ( false ) ;
75+
6276 }
6377
6478 reload = ( ) => {
@@ -197,7 +211,7 @@ export default class index extends React.Component<Props, State> {
197211
198212 render ( ) {
199213 return (
200- < BaseContainer style = { styles . container } bottomHeight = { 10 } >
214+ < BaseContainer style = { styles . container } bottomHeight = { 10 } onDidFocus = { this . onWillFocus } >
201215 < WebView
202216 ref = { ref => ( this . webView = ref ) }
203217 style = { styles . webView }
@@ -211,7 +225,7 @@ export default class index extends React.Component<Props, State> {
211225 onLoadEnd = { this . onLoadEnd }
212226 onLoadStart = { this . onLoadStart }
213227 onError = { this . onError }
214- mediaPlaybackRequiresUserAction = { false }
228+ mediaPlaybackRequiresUserAction = { true }
215229 />
216230 { this . renderActionButton ( ) }
217231 </ BaseContainer >
0 commit comments