โ† React Native
#6 most askedVery commonMediumNavigation

How does navigation work in React Native?

๐Ÿข Asked in real interviews
No reports yet. Were you asked this? Be the first to say where.
I was asked this

Explain how screen navigation works in a React Native app. What are stacks, tabs and deep links?

๐Ÿ”ฎ Predict the output

// A tiny stack navigator
const stack = ["Home"];
const navigate = (screen) => stack.push(screen);
const goBack = () => stack.length > 1 && stack.pop();
navigate("Feed");
navigate("Post");
goBack();
navigate("Profile");
console.log(stack.join(" > "));

๐ŸŽค Answer it out loud, then check yourself

Say your answer as if the interviewer is listening (30โ€“90 seconds). Then reveal what a strong answer covers and tick what you said.

    Answer out loud first, then compare.
    Want to rehearse it?
    Answer this to the AI interviewer and get a verdict โ†’