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 709B

1234567891011121314151617181920212223242526
  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. console.log(URL + path);
  18. return (
  19. <WebViewScreen
  20. {...props}
  21. url={URL + path}/>
  22. );
  23. };