Skip to content

Instantly share code, notes, and snippets.

View davidroman0O's full-sized avatar
👨‍🍳
Let me cook

0xAkraw davidroman0O

👨‍🍳
Let me cook
View GitHub Profile
@davidroman0O
davidroman0O / Commands.sh
Created April 29, 2017 19:14
Medium Commands
npm install
yarn start
@davidroman0O
davidroman0O / RenderMapView.js
Created April 29, 2017 19:06
Medium Cluster
import Expo from 'expo';
render() {
return (
<View
style={{
flex: 1
}}
@davidroman0O
davidroman0O / Cluster usage.js
Last active April 29, 2017 19:05
Medium Gist
import supercluster from 'supercluster';
componentWillReceiveProps(nextProps) {
const markers = this.createMarkersForLocations(nextProps);
if (markers && Object.keys(markers)) {
const clusters = {};
this.setState({
mapLock: true
});