Skip to content

Commit

Permalink
Fix #700
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang committed Nov 23, 2021
1 parent cf2d12e commit 3c57cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/src/map-view.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ export default class extends Component<MapViewProps> {
}

componentDidMount() {
super.componentDidMount();
// 无论如何也要在 1 秒后 setLoaded(true) ,防止 onLoad 事件不触发的情况下显示不正常
// 目前只在 iOS 上低概率出现
setTimeout(() => this.setState({ loaded: true }), 1000);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit 3c57cad

Please sign in to comment.