application-amicale/screens/AvailableRoomScreen.js

40 lines
908 B
JavaScript

// @flow
import * as React from 'react';
import ThemeManager from "../utils/ThemeManager";
import WebViewScreen from "../components/WebViewScreen";
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}
headerTitle={'SAlles dispo'}
hasHeaderBackButton={true}
hasSideMenu={false}/>
);
}
}