无法在 MapBox 中找到 MarkerView

Not able to find MarkerView in MapBox

我无法在这个 github 库的 MapBox 中找到 markerview https://github.com/react-native-mapbox-gl/maps,所以有人可以帮我吗?

否则我会像这样在其中使用 PointAnnotation,

               <MapboxGL.MapView style={{ flex: 1 }}>
                        <MapboxGL.Camera centerCoordinate={[22.470701, 70.057732]} zoomLevel={14} >

                        </MapboxGL.Camera>
                        <MapboxGL.PointAnnotation
                            id="foo1"
                            coordinate={[22.470701, 70.057732]}
                            title={'Hello'}>
                            <View style={{ flexWrap: 'wrap', backgroundColor: 'blue' }}>
                                <Image source={require('./chat.png')} style={styles.tinyLogo} />
                                <Text style={{ color: 'white', margin: 10 }}>.00</Text>
                            </View>
                            <MapboxGL.Callout style={{ borderRadius: 20, width: 150, height: 120 }}>
                                <View style={{ width: '100%', height: '100%', backgroundColor: 'white' }}>
                                    <Text style={{ marginHorizontal: 10, marginTop: 10 }}>123, Main st,</Text>
                                    <Text style={{ marginHorizontal: 10, marginBottom: 10 }}>Chicago, IL 6061</Text>
                                    <TouchableOpacity style={{ backgroundColor: 'orange', margin: 10, alignItems: 'center' }}>
                                        <Text style={{ margin: 10, color: 'white' }}>Select Shop</Text>
                                    </TouchableOpacity>
                                </View>
                            </MapboxGL.Callout>
                        </MapboxGL.PointAnnotation>   
             </MapboxGL.MapView>

但是那个图片没有显示,所以谁能帮我看看我该怎么做? 提前致谢。

提供了 MarkerView 用法示例 here
MarkerView 文档可用 here

来自该文档

If you have static view consider using PointAnnotation or SymbolLayer they'll offer much better performance

所以如果你是这种情况,看来你做得很好。