MCPcopy Index your code
hub / github.com/react-navigation/react-navigation / jumpTo

Function jumpTo

packages/core/src/StateUtils.js:94–98  ·  view source on GitHub ↗

* Sets the focused route of the navigation state by key.

(state, key)

Source from the content-addressed store, hash-verified

92 * Sets the focused route of the navigation state by key.
93 */
94 jumpTo(state, key) {
95 const index = StateUtils.indexOf(state, key);
96 invariant(index !== -1, 'attempt to jump to unknown key "%s"', key);
97 return StateUtils.jumpToIndex(state, index);
98 },
99
100 /**
101 * Sets the focused route to the previous route.

Callers

nothing calls this directly

Calls 1

invariantFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…