Skip to content

MapView is reloading on drawer open and close. #5797

@kundanthe

Description

@kundanthe

Summary

<MapView
style={styles.mapStyle}
showsUserLocation={true}
userInterfaceStyle={'light'}
pointerEvents="none" // default
mapType={'standard'}/>

I am using the above syntax and npm version 1.26.18. I am getting this issue on an Android device; iOS is not yet tested.

Reproducible sample code

<MapView
          style={styles.mapStyle}
          showsUserLocation={true}
          userInterfaceStyle={'light'}
          pointerEvents="none" // default
          mapType={'standard'}/>

Steps to reproduce

Open and close the drawer.
"@react-navigation/drawer": "^6.5.6",

Expected result

MapView does not need to be reloaded every time.

Actual result

MapView reloaded every time.

React Native Maps Version

1.26.18

What platforms are you seeing the problem on?

Android

React Native Version

0.81.0

What version of Expo are you using?

Not using Expo

Device(s)

Android

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions