I am using react-native-maps
for react-native
and I like to use my own buttons for "left" "right" "up" and "down" instead of using the fingers to swipe. (also a button for rotation)
i searched a lot in the web, but i couldn't find a solution for that.
It was possible for me to use setInterval and add a number to the longitude or latitude, but this is/was very data intensive, slow and not so smooth.
<MapView style={{ flex: 1 }}
initialRegion={this.state.region}
followUserLocation={false}
showsUserLocation={false}
zoomEnabled={false}
zoomControlEnabled={false}
zoomTapEnabled={false}
rotateEnabled={false}
scrollEnabled={false}
></MapView>
<Button title="up" onPress... />
<Button title="down" onPress.../>
<Button title="left" onPress... />
<Button title="right onPress... />
<Button title="rotate-left" onPress... />
<Button title="rotate-right" onPress... />