qiuxiang / react-native-baidumap-sdk

React Native BaiduMap SDK for Android + iOS
MIT License
330 stars 71 forks source link

使用 <MapView.Cricle/>报Element type is invalid: expected a string.... #153

Open 2207345508 opened 5 years ago

2207345508 commented 5 years ago

import { MapView ,Initializer} from 'react-native-baidumap-sdk' Initializer.init().catch(e => console.log(e))

     <MapView  style = {styles.map} center={{ latitude: 39, longitude: 113 }}>
                    <MapView.Cricle
                        center={{ latitude: 39, longitude: 113 }}
                        radius={1000}
                        strokeWidth={2}
                        strokeColor="rgba(0, 0, 255, 0.5)"
                        fillColor="rgba(255, 0, 0, 0.5)"
                    />
      </MapView>

报错: img_1374

2207345508 commented 5 years ago

试了Polygon、Marker都能正常使用,只有Cricle会出现上图问题,是不是我的用法错误

qiuxiang commented 5 years ago

circle。。

vyvee commented 5 years ago

试了Polygon、Marker都能正常使用,只有Cricle会出现上图问题,是不是我的用法错误

英文拼写错了,应为 Circle