Hi,
In our project we use react-navigation and we want to display a toast after a a page change.
We first set a delay of 200ms to wait for the user to be on the new page but it was not working and we were forced to wait for 1s.
Here is a part of our saga :
yield put(
NavigationActions.reset({
index: 0,
actions: [NavigationActions.reset({ routeName: 'getStarted' })],
key: null,
})
);
yield put(setLoading('saveAndExit', false));
yield call(delay, 1000);
Toast.showLongBottom(I18n.t('saveAndExitModal.successToast'));
We think it's because it's conflicting with the animation of the page change. Do you have a clue on how to fix this ?
(It's working well on Android with 200ms)
thanks