reactjs - Customizing my location button in airbnb/react-native-maps -


i have used airbnb/react-native-maps designing tracking based apps. have designed custom search box. problem is, search box overlaps location button. there way customize location button , changing alignment position? have attached photo more specification.

here sample code have used

                 <mapview                     provider={provider_google}                     style={styles.map}                     region={{                         latitude: this.props.initialposition.latitude,                         longitude: this.props.initialposition.longitude,                         latitudedelta: latitude_delta,                         longitudedelta: longitude_delta                     }}                     zoomenabled={true}                     minzoomlevel={5}                     maxzoomlevel={20}                     showsmylocationbutton={true}                     showsuserlocation={true}                     ... ... ...                    >                    {... ... ... ...}                    </mapview> 

enter image description here

a quick solution add padding top of map height of custom-search-box push mylocationbutton below it.

i went through docs could't find way customize position or alignment.

there similar issue in github regarding raised more 6 months ago suggests similar solution:

https://github.com/airbnb/react-native-maps/issues/1094


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -