EduFlow
Build Mobile Apps with React Native

Checkpoint: Navigation and State

Five questions on this section. Answer all of them, then see your score and why each answer is right or wrong.

Question 1 of 5

Trailhead needs a screen at /hikes/42/photos. Which file creates it?

Question 2 of 5

In the detail screen, const { id } = useLocalSearchParams<{ id: string }>() and useHike(Number(id)) is called. A link arrives for /hikes/abc. What should the screen show?

Question 3 of 5

After a hike is deleted on its detail screen, the code calls router.push('/'). What problem does this create?

Question 4 of 5

Which statement about Trailhead’s HikesProvider with separate state and dispatch contexts is true?

Question 5 of 5

On iOS, users of Trailhead’s add-hike form must tap Save twice whenever the keyboard is open. Which prop fixes it?

5 questions unanswered