Skip to content

rotateEnabled={false} does not disable map rotation on iOS #62

@dacoto

Description

@dacoto

Before submitting a new issue

  • I tested using the latest version of the library, as the bug might be already fixed.
  • I tested using a supported version of react native.
  • I checked for possible duplicate issues, with possible answers.

Bug summary

Setting rotateEnabled={false} on MapView does not prevent the user from rotating
the map on iOS. The prop is correctly respected on Android.

The map can still be rotated using a two-finger rotate gesture despite the prop being
explicitly set to false.

Minimal example:

<MapView
  rotateEnabled={false}
  style={{ flex: 1 }}
  initialCoordinate={{ latitude: 41.387, longitude: 2.1701 }}
/>
ScreenRecording_03-28-2026.00-12-19_1.MP4

Library version

1.0.0-beta.8

Environment info

System:
  OS: macOS 26.3.1
  CPU: (10) arm64 Apple M1 Max
  Memory: 166.72 MB / 32.00 GB
  Shell: 5.9 /bin/zsh
Binaries:
  Node: 24.14.0
  npm: 11.9.0
  Watchman: 2025.08.18.00
Managers:
  CocoaPods: 1.16.2
SDKs:
  iOS SDK: iOS 26.2
  Xcode: 26.3 / 17C529
npmPackages:
  react: 19.2.0
  react-native: 0.83.2
iOS:
  hermesEnabled: true
  newArchEnabled: true

Steps to reproduce

  1. Render a MapView with rotateEnabled={false}
  2. Run on iOS (physical device or simulator)
  3. Attempt to rotate the map using a two-finger rotate gesture
  4. The map rotates freely despite the prop being set to false

Expected: map rotation is disabled
Actual: map can still be rotated freely

Reproducible example repository

https://github.com/dacoto/transportam-app/tree/next

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