googlemaps / googlemaps/react-native-navigation-sdk

Error when including NavigationView component in Expo project using expo-router

Aperta
#74 10 commenti 1 reazione 1 assegnatario Assegnata a @caio1985 Vedi su GitHub
priority: p2 type: feature request
Lingua principale
TypeScript
Stelle
227
Fork
38
Merge medio
5g 7h
PR unite (30g)
10

Descrizione

I'm trying to use the NavigationView component in a fresh Expo/React Native project but getting the error below. I've implemented the same code that you have in the [example here](https://github.com/googlemaps/react-native-navigation-sdk/blob/main/SampleApp/src/app.tsx) in a fresh Expo project.

```
TypeError: Cannot read property 'Commands' of undefined, js engine: hermes
at ContextNavigator (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:155950:24)
at ExpoRoot (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:155906:28)
at App
at ErrorToastContainer (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:299144:24)
at ErrorOverlay
at withDevTools(ErrorOverlay) (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:298678:27)
at RCTView
at View (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:40346:43)
at RCTView
at View (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:40346:43)
at AppContainer (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:40157:36)
at main(RootComponent) (http://192.168.1.154:8081/node_modules/expo-router/entry.bundle//&platform=ios&dev=true&hot=false&lazy=true&transform.engine=hermes&transform.bytecode=true&transform.routerRoot=src%2Fapp:123933:28)
```

When the component is not included on my homepage, the error doesn't exist. Has anyone run into this weird error before?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.