You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using 7.30.2 of RNN and are trying to understand a few things about the appearance event API.
On Android, when a new Activity is opened on top of 2 existing React views (e.g. stack -> modal -> [new activity]) with a native Intent, ComponentDidDisappear is emitted for both views (modal -> stack). Similarly, when this activity is closed, ComponentWillAppear is emitted (modal -> stack).
On iOS on the other hand, no ComponentDidDisappear or ComponentWillAppear events are emitted when a ViewController appears/disappears.
For Android, is the order of the event (modal then stack) guaranteed?
For Android, is having both views emit events intended (rather than in this case, only the top most modal)?
Are the differences between Android and iOS behaviours expected?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Good day,
We are using 7.30.2 of RNN and are trying to understand a few things about the appearance event API.
On Android, when a new Activity is opened on top of 2 existing React views (e.g. stack -> modal -> [new activity]) with a native Intent, ComponentDidDisappear is emitted for both views (modal -> stack). Similarly, when this activity is closed, ComponentWillAppear is emitted (modal -> stack).
On iOS on the other hand, no ComponentDidDisappear or ComponentWillAppear events are emitted when a ViewController appears/disappears.
Best regards,
Asher
Beta Was this translation helpful? Give feedback.
All reactions