Browse Source

Update screen-api.md

Guy Carmeli 7 years ago
parent
commit
517831bf54
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      docs/screen-api.md

+ 4
- 1
docs/screen-api.md View File

263
 ```
263
 ```
264
 
264
 
265
 # Screen Visibility
265
 # Screen Visibility
266
-Listen to screen visibility events in onNavigatorEvent handler:
266
+
267
+`const isVisible = await this.props.navigator.isCurrentlyVisibleScreen()`
268
+
269
+## Listen visibility events in onNavigatorEvent handler
267
 
270
 
268
 ```js
271
 ```js
269
 export default class ExampleScreen extends Component {
272
 export default class ExampleScreen extends Component {