HMS-Core / hms-react-native-plugin

This repo contains all of React-Native HMS plugins.
https://developer.huawei.com/consumer/en/doc/overview/HMS-Core-Plugin?ha_source=hms1
Apache License 2.0
235 stars 67 forks source link

HMS map can not work inside ScrollView #284

Open hienpvptit opened 1 year ago

hienpvptit commented 1 year ago

Description Hi everybody. When I put HMSMap inside ScrollView, I can not swipe Map

<ScrollView>
    <HMSMap />
</ScrollView>

Any suggestion?

ilsafarber commented 1 year ago

Hi @hienpvptit

As far as I understand you are trying to implement an Huawei Map Module to your ScrollView, but since the Map itself is a scrollable component it may conflict with scroll gestures of the application. You may add some margins to scroll the page and the map separately but this is highly dependent to your UI and use case. If you need to add an inline non-scrollable map instance you may use the Lite Mode, if it is not the case, please share a code block and the use case or an example for me to check the request in detail.