I'm using expo and react native. I have about 8 different screens I'm navigating between, but on navigating to a page that is supposed to display a map, the app restarts and goes back to the splash screen. The code works fine in the emulator and my expo app. But the error occurs in the Binary build (APK). This page contains data from 'react-native-maps'.
<View style={styles.container}>
<MapView
style={styles.map}
region={{
latitude: scheduledOrders.starting_loc_lat,
longitude: scheduledOrders.starting_loc_long,
latitudeDelta: 0.0922,
longitudeDelta: 0.0421,
}}
>
{markers &&
markers.map((item, index) => (
<MapView.Marker
coordinate={item.coordinates}
pinColor={"purple"} // any color
title={item.title}
description={item.description}
key={index}
>
<View style={styles.circle}>
<AppText style={styles.pinText}>{index + 1}</AppText>
</View>
</MapView.Marker>
))}
</MapView>
</View>