i'm use this code , but my map not displaying!!
import Mapbox from '@mapbox/react-native-mapbox-gl';
Mapbox.setAccessToken('<my token >');
export class googleMap extends Component<{}>{
render() {
return (
<View style={{flex:1}}>
<Mapbox.MapView
logoEnabled={false}
styleURL={Mapbox.StyleURL.Street}
zoomLevel={15}
centerCoordinate={[11.256, 43.770]}
style={styles.container}>
</Mapbox.MapView>
</View>
);
}
} ;
const styles = StyleSheet.create({
container: {
flex: 1,
},
})
export default googleMap;

Mine crashes when I call: Mapbox.setAccessToken() ... Application just stops and closes in the Android simulator.
@javadmohammadis Mine ended up being a problem with the Android Studio emulators. I switched to another emulator (genymotion) and now the maps appear.
thanks. I run the app on an Android device, is ok
@nitaliano issue can be closed, it's an known problem with android emulators.
This is fixed in master.
Most helpful comment
Mine crashes when I call: Mapbox.setAccessToken() ... Application just stops and closes in the Android simulator.