Please provide the following:
- SDK Version: 43.0.0
- Android Expo Go
- ExpoGo
MapView.Polyline from react-native-maps works fine in iOS sim, and AVD, but when on Android using ExpoGo, the component crashes, and makes other elements of the screen unuseable.
useEffect(() => {
mapRef.current.fitToCoordinates(polylines);
}, []);
<MapView
style={{ width: "100%", height: "100%" }}
mapPadding={{
top: 40,
right: 40,
left: 40,
bottom: 420,
}}
ref={mapRef}
>
{markers.map((marker) => (
<Marker
key={marker.key}
coordinate={marker.coordinates}
title={marker.title}
/>
))}
<Polyline
strokeColor={STYLES.blue}
strokeWidth={3}
geodesic={true}
coordinates={polylines}
/>
</MapView>
polylines =
Array [
Object {
"latitude": 29.984444444444446,
"longitude": -95.34144444444443,
},
Object {
"latitude": 26.071666666666665,
"longitude": -80.14969444444445,
},
]
Is this the right place to ask? Thanks in advance!