Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _onMapPress(e) {
- console.log(e.nativeEvent.coordinate);
- this.setState({
- markers: [
- ...this.state.markers,
- {
- coordinate: e.nativeEvent.coordinate,
- key: id++,
- color: "#123456", //randomColor(),
- //description: "This is a description"
- //image: {require('../assets/images/pin32.svg')}
- }
- ],
- }, () => {
- this.state.animations.push(getMarkerState(panX,panY,scrollY,key));
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement