application-amicale/screens/AvailableRoomScreen.js

41 lines
904 B
JavaScript
Raw Normal View History

// @flow
import * as React from 'react';
import WebViewScreen from "../components/WebViewScreen";
2019-11-07 17:58:02 +01:00
import i18n from "i18n-js";
type Props = {
navigation: Object,
}
const URL = 'http://planex.insa-toulouse.fr/salles.php';
/**
* Class defining the app's planex screen.
* This screen uses a webview to render the planex page
*/
export default class AvailableRoomScreen extends React.Component<Props> {
customInjectedJS: string;
constructor() {
super();
this.customInjectedJS = '';
}
render() {
const nav = this.props.navigation;
return (
<WebViewScreen
navigation={nav}
url={URL}
customInjectedJS={this.customInjectedJS}
2019-11-07 17:58:02 +01:00
headerTitle={i18n.t('screens.availableRooms')}
hasHeaderBackButton={true}
hasSideMenu={false}/>
);
}
}