Compare commits
3 commits
faac5688f8
...
09ed0058ae
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09ed0058ae | ||
|
|
1639544810 | ||
|
|
4492debad9 |
3 changed files with 8 additions and 6 deletions
|
|
@ -475,8 +475,8 @@
|
||||||
"loading": "Chargement...",
|
"loading": "Chargement...",
|
||||||
"retry": "Réessayer",
|
"retry": "Réessayer",
|
||||||
"networkError": "Impossible de contacter les serveurs. Assure-toi d'être connecté à Internet.",
|
"networkError": "Impossible de contacter les serveurs. Assure-toi d'être connecté à Internet.",
|
||||||
"goBack": "Suivant",
|
"goBack": "Précédent",
|
||||||
"goForward": "Précédent",
|
"goForward": "Suivant",
|
||||||
"openInBrowser": "Ouvrir dans le navigateur",
|
"openInBrowser": "Ouvrir dans le navigateur",
|
||||||
"notAvailable": "Non disponible",
|
"notAvailable": "Non disponible",
|
||||||
"listUpdateFail": "Erreur lors de la mise à jour de la liste"
|
"listUpdateFail": "Erreur lors de la mise à jour de la liste"
|
||||||
|
|
|
||||||
|
|
@ -66,6 +66,8 @@ class WebViewScreen extends React.PureComponent<PropsType> {
|
||||||
customPaddingFunction: null,
|
customPaddingFunction: null,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
currentUrl: string;
|
||||||
|
|
||||||
webviewRef: {current: null | WebView};
|
webviewRef: {current: null | WebView};
|
||||||
|
|
||||||
canGoBack: boolean;
|
canGoBack: boolean;
|
||||||
|
|
@ -74,6 +76,7 @@ class WebViewScreen extends React.PureComponent<PropsType> {
|
||||||
super(props);
|
super(props);
|
||||||
this.webviewRef = React.createRef();
|
this.webviewRef = React.createRef();
|
||||||
this.canGoBack = false;
|
this.canGoBack = false;
|
||||||
|
this.currentUrl = props.url;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -222,8 +225,7 @@ class WebViewScreen extends React.PureComponent<PropsType> {
|
||||||
};
|
};
|
||||||
|
|
||||||
onOpenClicked = () => {
|
onOpenClicked = () => {
|
||||||
const {url} = this.props;
|
Linking.openURL(this.currentUrl);
|
||||||
Linking.openURL(url);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
onScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => {
|
onScroll = (event: NativeSyntheticEvent<NativeScrollEvent>) => {
|
||||||
|
|
@ -261,7 +263,8 @@ class WebViewScreen extends React.PureComponent<PropsType> {
|
||||||
onRefresh={this.onRefreshClicked}
|
onRefresh={this.onRefreshClicked}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
onNavigationStateChange={(navState: {canGoBack: boolean}) => {
|
onNavigationStateChange={(navState) => {
|
||||||
|
this.currentUrl = navState.url;
|
||||||
this.canGoBack = navState.canGoBack;
|
this.canGoBack = navState.canGoBack;
|
||||||
}}
|
}}
|
||||||
onMessage={props.onMessage}
|
onMessage={props.onMessage}
|
||||||
|
|
|
||||||
|
|
@ -61,7 +61,6 @@ function EquipmentConfirmScreen(props: Props) {
|
||||||
date: getRelativeDateString(start),
|
date: getRelativeDateString(start),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log(buttonText);
|
|
||||||
return (
|
return (
|
||||||
<CollapsibleScrollView>
|
<CollapsibleScrollView>
|
||||||
<Card style={{margin: 5}}>
|
<Card style={{margin: 5}}>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue