I am trying to overlay some elements in the middle and too of a map but to no avail. So far i've attempted to use 'OverlayComponent' as described on the documentation
render() {
return (
<MapView
region={this.state.region}
/>
<OverlayComponent
style={{position: “absolute”, bottom: 50}}
/>
);
}
This component it seems isn't really exported by react-native-maps
anymore as
import MapView, { OverlayComponent } from 'react-native-maps';
yields undefined for OverlayComponent
.
Any ideas? I am a bit at a loss as to how i should approach this.
I tried overlaying a View
over the map with pointerEvents
set to none
which works but one of the elements im trying to overlay needs to capture input, specifically its a TextInput im trying to turn into a searchbar.
Thanks a bungh
OverlayComponent
is just an example of a component but not an actual thing exported. – Killerdiller