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
Mapbox
11.8.0
0.76.1
iOS
@rnmapbox/maps
10.1.33
import { StyleSheet } from "react-native"; import Mapbox from "@rnmapbox/maps"; Mapbox.setAccessToken( "pk.ey...", ); export default function App() { return ( <Mapbox.MapView styleURL="mapbox://styles/mapbox/standard"> <Mapbox.StyleImport id="basemap" existing config={{ lightPreset: "dusk" }} /> <Mapbox.Camera /> </Mapbox.MapView> ); }
On a bare example with StyleImport called, throws a host exception error.
StyleImport
Should render the map as expected with the dusk preset set
No response
The text was updated successfully, but these errors were encountered:
Please fix the errors in your code example - More info.:
error: 'React' must be in scope when using JSX (react/react-in-jsx-scope) at example.jsx:11:5: 9 | export default function App() { 10 | return ( > 11 | <Mapbox.MapView styleURL="mapbox://styles/mapbox/standard"> | ^ 12 | <Mapbox.StyleImport 13 | id="basemap" 14 | existing error: 'React' must be in scope when using JSX (react/react-in-jsx-scope) at example.jsx:12:7: 10 | return ( 11 | <Mapbox.MapView styleURL="mapbox://styles/mapbox/standard"> > 12 | <Mapbox.StyleImport | ^ 13 | id="basemap" 14 | existing 15 | config={{ lightPreset: "dusk" }} error: 'React' must be in scope when using JSX (react/react-in-jsx-scope) at example.jsx:17:7: 15 | config={{ lightPreset: "dusk" }} 16 | /> > 17 | <Mapbox.Camera /> | ^ 18 | </Mapbox.MapView> 19 | ); 20 | } 3 errors found.```
Sorry, something went wrong.
Repro: https://github.com/vineyardbovines/rnmapbox-styleimport-bug
app.json
App.tsx
npx expo prebuild -p ios
No branches or pull requests
Mapbox Implementation
Mapbox
Mapbox Version
11.8.0
React Native Version
0.76.1
Platform
iOS
@rnmapbox/maps
version10.1.33
Standalone component to reproduce
Observed behavior and steps to reproduce
On a bare example with
StyleImport
called, throws a host exception error.Expected behavior
Should render the map as expected with the dusk preset set
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: