pawan-pk / react-native-mapbox-navigation

Mapbox React Native SDKs enable interactive maps and real-time, traffic-aware turn-by-turn navigation, dynamically adjusting routes to avoid congestion.
MIT License
16 stars 6 forks source link

IOS - always runs as simulation, current position isn't set at all #25

Open itzik-camelot-ai opened 2 weeks ago

itzik-camelot-ai commented 2 weeks ago

hi, ive successfully integrated the library both on ios and android while on android it works great on IOS it defaults always to simulation, and my location isnt correct on the map

ive tested location on mapbox gl and it works and also works on android

so i fail to see what ive done wrong

hope you could help me figure it out.

tnx.

`return ( <View style={[ styles.map ]}> <MapboxNavigation distanceUnit="metric" startOrigin={{ latitude: currentLocation?.latitude ?? 32, longitude: currentLocation?.longitude ?? 34, }} destination={{ latitude: destination?.latitude ?? 32, longitude: destination?.longitude ?? 32, }} waypoints={ [ // {latitude: 32.0746, longitude: 34.7926}, // {latitude: 32.08, longitude: 34.7832}, ] } onLocationChange={handleLocationChange} style={[styles.container]} // shouldSimulateRoute={false} // showCancelButton={false} // hideStatusView={true} language="en" onRouteProgressChange={handleRouteProgressChange} onError={event => { console.error('Navigation Error: '); dispatch(setNavigationStarted(false)); }} onCancelNavigation={() => { console.log('Navigation Canceled'); dispatch(setNavigationStarted(false)); }} onArrive={() => { console.log('Arrived at Destination'); dispatch(setNavigationStarted(false)); }} />

  <SpeedComponent speed={speed} />
  <CoinComponent distance={coins} />
  <CoinAnimationComponent />
</View>

); };`

itzik-camelot-ai commented 2 weeks ago

ive also tired manipulating the native code ive also logged out the should simulate, and it is false yet the simulation persists regardless of what im doing

thats just super weird