hms-react-native-plugin icon indicating copy to clipboard operation
hms-react-native-plugin copied to clipboard

HMS map can not work inside ScrollView

Open hienpvptit opened this issue 1 year ago • 1 comments

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

<ScrollView>
    <HMSMap />
</ScrollView>

Any suggestion?

hienpvptit avatar Jun 14 '23 10:06 hienpvptit

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.

ilsafarber avatar Jun 19 '23 13:06 ilsafarber