If you use a functional (with hooks) component for a screen and you use registerComponentDidAppearListener you could end up with the events not being triggered (only on Android and in release mode)
I have created a simple react-native project on a public repo to reproduce it. The example reproduce the DidAppear not working on Android release mode only
The project includes a screen implemented as a Functional Component (with hooks) and also a PureComponent with the same behavior.
react-native run-android
The sample works perfect on both Functional and PureComponent
react-native run-android --variant=release
The sample works perfect on the PureComponent implementation but the Functional doesn't work

Video of the example app running in release mode
@guyca Any updates on this issue?
Also seems like life cycle hook is pretty slow on Android and I am testing the App on Samsung S10 so can't be the device is slow. Furthermore on iOS seems everything smooth.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue is still happening it would be awesome if someone can take a look into.
There's a I have simple react-native project to reproduce de issue here -> https://github.com/jpgarcia/rnn-events-issue
Looks like life cycle hook is not guarantee to get fire on Debug build too. It's still happening:(
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
Hey @guyca do you have any updates on this issue? Thanks!
@sintylapse mentioned here https://github.com/underscopeio/react-native-navigation-hooks/issues/7 the cause of the events not being triggered.
Basically you must use useLayoutEffect instead of useEffect 馃殌
BTW I just published a new version of react-native-navigation-hooks which includes this fix
Most helpful comment
@sintylapse mentioned here https://github.com/underscopeio/react-native-navigation-hooks/issues/7 the cause of the events not being triggered.
Basically you must use useLayoutEffect instead of useEffect 馃殌
BTW I just published a new version of react-native-navigation-hooks which includes this fix