瀏覽代碼

Update screen-api.md

Guy Carmeli 7 年之前
父節點
當前提交
517831bf54
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      docs/screen-api.md

+ 4
- 1
docs/screen-api.md 查看文件

@@ -263,7 +263,10 @@ this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
263 263
 ```
264 264
 
265 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 271
 ```js
269 272
 export default class ExampleScreen extends Component {