|
@@ -2,7 +2,6 @@
|
2
|
2
|
|
3
|
3
|
import * as React from 'react';
|
4
|
4
|
import WebViewScreen from "../../../components/Screens/WebViewScreen";
|
5
|
|
-import {CommonActions} from "@react-navigation/native";
|
6
|
5
|
|
7
|
6
|
const URL = 'https://www.amicale-insat.fr/';
|
8
|
7
|
/**
|
|
@@ -15,10 +14,9 @@ export const AmicaleWebsiteScreen = (props: Object) => {
|
15
|
14
|
if (props.route.params.path !== undefined && props.route.params.path !== null) {
|
16
|
15
|
path = props.route.params.path;
|
17
|
16
|
path = path.replace(URL, '');
|
18
|
|
- // reset params to prevent infinite loop
|
19
|
|
- props.navigation.dispatch(CommonActions.setParams({path: null}));
|
20
|
17
|
}
|
21
|
18
|
}
|
|
19
|
+ console.log(URL + path);
|
22
|
20
|
return (
|
23
|
21
|
<WebViewScreen
|
24
|
22
|
{...props}
|