Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Toast not showing on iPhone if trigger right after a navigate #40

Open
AuroreM opened this issue Oct 26, 2017 · 1 comment
Open

Toast not showing on iPhone if trigger right after a navigate #40

AuroreM opened this issue Oct 26, 2017 · 1 comment

Comments

@AuroreM
Copy link

AuroreM commented Oct 26, 2017

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

@guopeng1994
Copy link

same problem!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants