Application Android et IOS pour l'amicale des élèves
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

AmicaleWebsiteScreen.js 680B

12345678910111213141516171819202122232425
  1. // @flow
  2. import * as React from 'react';
  3. import WebViewScreen from "../../../components/Screens/WebViewScreen";
  4. const URL = 'https://www.amicale-insat.fr/';
  5. /**
  6. * Class defining the app's available rooms screen.
  7. * This screen uses a webview to render the page
  8. */
  9. export const AmicaleWebsiteScreen = (props: Object) => {
  10. let path = '';
  11. if (props.route.params !== undefined) {
  12. if (props.route.params.path !== undefined && props.route.params.path !== null) {
  13. path = props.route.params.path;
  14. path = path.replace(URL, '');
  15. }
  16. }
  17. return (
  18. <WebViewScreen
  19. {...props}
  20. url={URL + path}/>
  21. );
  22. };