MCPcopy Create free account
hub / github.com/CommE2E/comm / validNavState

Function validNavState

native/navigation/navigation-utils.js:142–151  ·  view source on GitHub ↗
(state: PossiblyStaleNavigationState)

Source from the content-addressed store, hash-verified

140}
141
142function validNavState(state: PossiblyStaleNavigationState): boolean {
143 if (state.routes.length === 0) {
144 return false;
145 }
146 const [firstRoute] = state.routes;
147 if (firstRoute.name !== AppRouteName) {
148 return false;
149 }
150 return true;
151}
152
153function getChildRouteFromNavigatorRoute(
154 parentRoute: PossiblyStaleRoute<>,

Callers 1

root.react.jsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected