// @flow import * as React from 'react'; import {Platform, View} from 'react-native'; import {Container, Spinner} from 'native-base'; import WebView from "react-native-webview"; import Touchable from "react-native-platform-touchable"; import CustomMaterialIcon from "../components/CustomMaterialIcon"; import ThemeManager from "../utils/ThemeManager"; import CustomHeader from "../components/CustomHeader"; import i18n from "i18n-js"; type Props = { navigation: Object, } const RU_URL = 'http://m.insa-toulouse.fr/ru.html'; /** * Class defining the app's planex screen. * This screen uses a webview to render the planex page */ export default class SelfMenuScreen extends React.Component { webview: WebView; getRefreshButton() { return ( this.refreshWebview()}> ); }; refreshWebview() { this.webview.reload(); } render() { const nav = this.props.navigation; return ( (this.webview = ref)} source={{uri: RU_URL}} style={{ width: '100%', height: '100%', }} startInLoadingState={true} renderLoading={() => } /> ); } }