Reset app state without closing/restarting it

This commit is contained in:
Sofiya Tepikin
2022-08-10 15:40:48 +02:00
parent 0ec23219bf
commit 08b0dc7734
8 changed files with 51 additions and 21 deletions
+2 -2
View File
@@ -53,7 +53,7 @@ class App extends Component {
}
render() {
const { date, navigation, goBack } = this.props
const { date, navigation, goBack, restartApp } = this.props
const { currentPage } = navigation
if (!currentPage) {
@@ -80,7 +80,7 @@ class App extends Component {
return (
<View style={styles.container}>
<Header {...headerProps} />
<Page {...pageProps} />
<Page {...pageProps} restartApp={restartApp} />
<Menu />
</View>
)