Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Dismissing spinner also dismisses modal #110

Open
@elsurudo

Description

On a promise resolution from a fetch call, I do two things:

  1. Hide the spinner by setting a state variable bound to `<Spinner visible={myVar} ... />
  2. Display a react-native-navigation modal using Navigation.showModal(...)

I have found that having (1) here means the modal is immediately hidden, right after being presented.

Any ideas what could be going wrong here, and how these two things can be reconciled?

I tried a setTimeout with low timeout > 0 and it works... sometimes. So it leads to non-deterministic behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /