Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Bike extends Component {
- handleGetDirections = () => {
- const data = {
- source: {
- latitude: -33.8356372,
- longitude: 18.6947617
- },
- destination: {
- latitude: -33.8600024,
- longitude: 18.697459
- },
- params: [
- {
- key: "dirflg",
- value: "w"
- }
- ]
- }
- getDirections(data)
- }
- render() {
- const { coordinate, title } = this.props;
- return (
- <MapView.Marker coordinate={coordinate}>
- <MapView.Callout onPress={this.handleGetDirections}>
- <View>
- <Text>{ title }</Text>
- <GmapsDirections/>
- </View>
- </MapView.Callout>
- </MapView.Marker>
- )
- }
- }
Add Comment
Please, Sign In to add comment