Closed JunekCZ closed 1 year ago
@JunekCZ, sorry for us to look into project setup issues, we require steps to reproduce from react-native init ...
. If you cannot reproduce starting with a blank project, then compare your setup with a blank working one.
This configuration is mirrored to the cleared (new) application with the expo so this configuration is running in the cleared application and the errors are still the same and remain.
I have settled up a new expo app and I have installed this library via command npm install @rnmapbox/maps
.
The app started in the browser normally.
After that, I added Mapbox as it's written in the tutorial here on Github.
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import MapboxGL from '@rnmapbox/maps';
MapboxGL.setAccessToken('pk.eytoken');
export default function App() {
return (
<View style={styles.container}>
<MapboxGL.MapView style={styles.map} />
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
map: {
flex: 1
}
});
I also am allowed to run and see it in the browser. It just do the errors as I wrote up with the android device.
Which command have you used to build the expo client? It will not work with the default expo go app.
npx expo start
. Which command should I use?
I have followed all the android installation documentation. Also, the web version is running correctly but I cannot run it on Android. I have also added some other things that were not written in the documentation.
Build.gradle
settings.gradle
gradle.properties
build.gradle (android\app\build.gradle)
MainApplication.java
Thank you for your replies!