diff --git a/lib/src/map-view.tsx b/lib/src/map-view.tsx index 50830662..039f36e9 100644 --- a/lib/src/map-view.tsx +++ b/lib/src/map-view.tsx @@ -195,6 +195,7 @@ export default class extends Component { } componentDidMount() { + super.componentDidMount(); // 无论如何也要在 1 秒后 setLoaded(true) ,防止 onLoad 事件不触发的情况下显示不正常 // 目前只在 iOS 上低概率出现 setTimeout(() => this.setState({ loaded: true }), 1000); diff --git a/package.json b/package.json index adef19c4..b25da5f7 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "@types/react-native": "^0.65.8", "@types/supercluster": "^5.0.3", "react": "17.0.2", - "react-native": "^0.66.1", + "react-native": "^0.66.3", "react-native-safe-area-context": "^3.3.2", "react-native-screens": "^3.8.0" },