陈小赫

Results 7 comments of 陈小赫

RN 0.59以上遇到这个问题,需要先把组件的build.gradle升级ext.kotlin_version的kotlin版本,然后在BaiduMapPackage.kt 和 Utils.kt 文件里面把对应出错的地方加上 !!(在 . 之前),可以解决这个问题。

我这边有一种绕过改源码的方法,相当于变相实现,需要的同学可以参考下. [链接](https://www.jianshu.com/p/e7eb57a5a007)

在AMapGeolocation.m文件114行加入这块代码,来使app申请定位权限,才能拿到定位信息 `- (void)amapLocationManager:(AMapLocationManager *)manager doRequireLocationAuth:(CLLocationManager *)locationManager{ [locationManager requestAlwaysAuthorization]; }`

ld: library not found for -lDoubleConversion 我也遇到这个问题,调了半天

@tianweicc 微博可以用这个: https://github.com/reactnativecn/react-native-weibo QQ: https://github.com/reactnativecn/react-native-qq 微信: https://github.com/yorkie/react-native-wechat 这个几个都是有写好的了

原因: 1、source 路径问题。 2、webview新加了一个属性originWhitelist 在 WebView 中载入一段静态的 html 代码或是一个 url(还可以附带一些 header 选项)。注意如果是载入html代码,则需要设置originWhitelist,比如可以设为["*"]来允许运行本地代码。 文档:https://reactnative.cn/docs/webview/#source 处理方法: 在Echarts/index的webview组件: 添加 originWhitelist={['*']} 属性 clean 项目重新运行即可