skip to Main Content

I am trying to run MapLibreGL in React Native but get an error "Cannot read property 'StyleURL' of null"

I created a React Native project with Expo. I have imported the library @malibre/malibre-react-native and added this code in my component: <View style={styles.page}> <MapLibreGL.MapView ref={mapviewRef} style={styles.map} logoEnabled={false} styleURL="https://map.ir/vector/styles/main/mapir-Dove-style.json" attributionControl={false} // Remove attribution for cleaner UI /> </View> enter image description…

VIEW QUESTION
Back To Top
Search