|
@@ -326,9 +326,9 @@ Dismiss all the current modals at the same time.
|
326
|
326
|
```js
|
327
|
327
|
Navigation.dismissAllModals();
|
328
|
328
|
```
|
329
|
|
-#### Screen Lifecycle - didDisppear() and didAppear()
|
|
329
|
+#### Screen Lifecycle - didDisappear() and didAppear()
|
330
|
330
|
|
331
|
|
-The didDisppear() and didAppear() functions are lifecycle functions that are added to the screen and run when a screen apears and disappears from the screen. To use them simply add them to your component like any other react lifecycle function:
|
|
331
|
+The didDisappear() and didAppear() functions are lifecycle functions that are added to the screen and run when a screen apears and disappears from the screen. To use them simply add them to your component like any other react lifecycle function:
|
332
|
332
|
|
333
|
333
|
```js
|
334
|
334
|
class LifecycleScreen extends Component {
|
|
@@ -343,8 +343,8 @@ class LifecycleScreen extends Component {
|
343
|
343
|
this.setState({ text: 'didAppear' });
|
344
|
344
|
}
|
345
|
345
|
|
346
|
|
- didDisppear() {
|
347
|
|
- alert('didDisppear');
|
|
346
|
+ didDisappear() {
|
|
347
|
+ alert('didDisappear');
|
348
|
348
|
}
|
349
|
349
|
|
350
|
350
|
componentWillUnmount() {
|
|
@@ -361,5 +361,3 @@ class LifecycleScreen extends Component {
|
361
|
361
|
}
|
362
|
362
|
}
|
363
|
363
|
```
|
364
|
|
-
|
365
|
|
-
|