// @flow import * as React from 'react'; import ThemeManager from "../utils/ThemeManager"; import WebViewScreen from "../components/WebViewScreen"; type Props = { navigation: Object, } const PLANEX_URL = 'http://planex.insa-toulouse.fr/'; const CUSTOM_CSS_GENERAL = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/planex/customMobile.css'; const CUSTOM_CSS_NIGHTMODE = 'https://srv-falcon.etud.insa-toulouse.fr/~amicale_app/custom_css/planex/customDark.css'; /** * Class defining the app's planex screen. * This screen uses a webview to render the planex page */ export default class PlanexScreen extends React.Component { customInjectedJS: string; constructor() { super(); this.customInjectedJS = 'document.querySelector(\'head\').innerHTML += \'\';' + 'document.querySelector(\'head\').innerHTML += \'\';'; if (ThemeManager.getNightMode()) this.customInjectedJS += 'document.querySelector(\'head\').innerHTML += \'\';'; } render() { const nav = this.props.navigation; return ( ); } }