Skip to content

修复 ios 动画过程中创建的 MapView 宽高可能超出的问题

7c00请求将github/fork/yinhangfeng/fix-ios合并到master

Created by: yinhangfeng

相关 issue #251 (closed) #428 #435 大概原因是 RN 会使用 setBounds 设置控件宽高 https://github.com/facebook/react-native/blob/master/React/Views/UIView+React.m#L200 然后高德地图的 setBounds 可能被重写过了导致在动画过程中创建的 MapView 宽高会随机超出 解决方法是给 MapView 包一层 UIView 就好了

具体深入的原因我也不是很清楚,因为我是开发 Android 的...

合并请求报告