T
T
TheRevan2021-05-28 07:51:35
React
TheRevan, 2021-05-28 07:51:35

Why doesn't navigation.navigate work?

There is this effect:

useEffect(() => {
    if(fetchStatus !== STATUS.SUCCESS) return;

    console.log("navigate")
    navigation.navigate("EnterSMS");
  }, [fetchStatus])

at the same time, console.log works, but there is no transition to the screen until I tap on any part of the screen. what could be the reason and how to fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dimka Reactive, 2021-05-28
@raoffonom

Is a stack with this name definitely created?

<Stack.Screen name="EnterSMS" component={EnterSMSScreen} />

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question