We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create custom style on mapbox studio. Make it standard, and publish it as public. Here's the preview.
From share button retrieve the styleURL and use it directly into your component.
import React from 'react'; import { StyleSheet, View } from 'react-native'; import Mapbox from '@rnmapbox/maps'; Mapbox.setAccessToken('<YOUR_ACCESSTOKEN>'); const App = () => { return ( <View style={styles.page}> <View style={styles.container}> <Mapbox.MapView style={styles.map} styleURL="<STYLE_URL>" /> </View> </View> ); } export default App; const styles = StyleSheet.create({ page: { flex: 1, justifyContent: 'center', alignItems: 'center', }, container: { height: 300, width: 300, }, map: { flex: 1 } });
Now i'm encountering a black screen. Note two things:
StyleURL.Light
Really looking forward some help!
The text was updated successfully, but these errors were encountered:
Solved by using mapbox v11 instead of default v10.
Sorry, something went wrong.
No branches or pull requests
Environment
Steps to reproduce
Create custom style on mapbox studio.
Make it standard, and publish it as public. Here's the preview.
From share button retrieve the styleURL and use it directly into your component.
Now i'm encountering a black screen.
Note two things:
StyleURL.Light
, this do not display black screen anymore.Really looking forward some help!
The text was updated successfully, but these errors were encountered: