React Navigation - How to detect if transition is complete

Viewed 984

I use react-navigation in my app. If I navigate from screen A to Screen B, how can I got some feedback, if the transition is completed.

1 Answers

import { InteractionManager } from 'react-native and then

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