Skip to content

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

@AuroreM

Description

@AuroreM

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions