This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| npm install | |
| yarn start |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Expo from 'expo'; | |
| render() { | |
| return ( | |
| <View | |
| style={{ | |
| flex: 1 | |
| }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import supercluster from 'supercluster'; | |
| componentWillReceiveProps(nextProps) { | |
| const markers = this.createMarkersForLocations(nextProps); | |
| if (markers && Object.keys(markers)) { | |
| const clusters = {}; | |
| this.setState({ | |
| mapLock: true | |
| }); |
NewerOlder