Maps: Cannot read property 'StyleURL' of undefined (on iOS)

Created on 25 Sep 2019  路  1Comment  路  Source: react-native-mapbox-gl/maps

Describe the bug
ref={this.map}
style={{width: "100%", height: 138, position: 'relative'}}
logoEnabled={false}
attributionEnabled={false}
zoomEnabled={false}
styleURL={MapboxGL.StyleURL.Satellite}
scrollEnabled={false}>
centerCoordinate={[lng,lat]}
zoomLevel={12}
/>
{/* Display Mapbox.MapshapeSoure And MaboxGL.LineLayer*/}

I only get the result with android but when I test it with iOS i get this error : Cannot read property 'StyleURL' of undefined

Versions

  • Platfrom: iOS
  • Device: All
  • React Native Version : 0.60

>All comments

This happens when the native side code is not installed properly. Please follow the install instructions closely.

Was this page helpful?
0 / 5 - 0 ratings