googlemaps / googlemaps/react-native-navigation-sdk

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

Offen
#74 10 Kommentare 1 Reaktion 1 zugewiesene Person Zugewiesen an @caio1985 Auf GitHub ansehen
priority: p2 type: feature request
Vorherrschende Sprache
TypeScript
Sterne
227
Forks
38
Ø Merge
5 T. 7 Std.
Gemergte PRs (30 T.)
10

Beschreibung

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?

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.