REF: lapp browser

This commit is contained in:
Overtorment 2019-01-17 18:13:49 +00:00
parent a1b268c1a9
commit 260b3bf3ba

View file

@ -224,13 +224,7 @@ export default class Browser extends Component {
]);
}
}}
onLoadStart={e => {
this.setState({ pageIsLoading: true });
}}
onLoadEnd={e => {
this.setState({ url: e.nativeEvent.url, pageIsLoading: false });
this.webview.injectJavaScript(`
injectedJavaScript={`
// this is a storage of responses from OUTER code (react native)
// it gets written by message bus handler callback:
@ -363,7 +357,12 @@ document.addEventListener("message", function(event) {
}
}, 1000);
`);
`}
onLoadStart={e => {
this.setState({ pageIsLoading: true });
}}
onLoadEnd={e => {
this.setState({ url: e.nativeEvent.url, pageIsLoading: false });
}}
/>
</SafeBlueArea>