React Navigation - 如何检测转换是否完成

时间:2017-09-27 15:59:34

标签: react-navigation

我在我的应用中使用react-navigation。 如果我从screen A导航到Screen B,如果转换完成,我该如何获得一些反馈。

1 个答案:

答案 0 :(得分:2)

import { InteractionManager } from 'react-native然后

componentDidMount(){
   InteractionManager.runAfterInteractions(() => {
       //your code
   })
}