react-native-maps icon indicating copy to clipboard operation
react-native-maps copied to clipboard

This package is becoming unusable on Android, markers flicker or are cut off and TurboModuleRegistry.getEnforcing(…): ‘RNMapsAirModule’ Could Not Be Found” error

Open ashwinramdas12 opened this issue 1 year ago • 12 comments

Summary

The markers for this package are broken on Android. Not only is the flickering problem persistent, but the markers are also cut off on certain Android devices:

Image

I tried updating my package to 1.24.2 and added the necessary entries to app.json plugins array, and then I get hit with the "TurboModuleRegistry.getEnforcing(…): ‘RNMapsAirModule’ Could Not Be Found”" error. I have to revert back to version 1.20.1 for my app to even function and the flickering and cut off markers persist.

I've tried the 1.24.X versions on expo go and with development builds and I get the same RNMapsAorModule not found error.

Reproducible sample code

<MapView
   ref={mapRef}
    className="w-full h-full"
     customMapStyle={customMapStyle || defaultMapStyle}
     onRegionChangeComplete={onRegionChangeComplete}
    onLongPress={(event) => {
           const { coordinate } = event.nativeEvent;
            setLongPressCoordinates({
                                lat: coordinate.latitude,
                                lng: coordinate.longitude
                            });
            }}
      region={{
           latitude: mapCoordinates.lat,
           longitude: mapCoordinates.lng,
           ...deltas,
       }}
       tracksViewChanges = {false}
>   
<Marker
        key={`cluster-${index}`}
        coordinate={{
              latitude: post.coordinates[1],
              longitude: post.coordinates[0],
         }}
    >
       <Image source={require('@/assets/images/adaptive-icon-new.png')} style={{width: 36, height: 36}}/>
   </Marker>
</MapView>

Steps to reproduce

Use any custom image within the Marker component and it clips. And I am using a much more complex than this but even this doesnt work.

Expected result

the full marker should show

Actual result

the markers are clipped

React Native Maps Version

1.20.1

What platforms are you seeing the problem on?

Android

React Native Version

0.79.4

What version of Expo are you using?

SDK 53

Device(s)

Pixel 3, Pixel 7 Pro

Additional information

No response

ashwinramdas12 avatar Jul 29 '25 22:07 ashwinramdas12

I am getting the same error

SteveKibs avatar Jul 30 '25 06:07 SteveKibs

Hi! Are you using expo start or expo run:android ?

It looks like expo start isn't working due to a native package reference.

Byrby avatar Jul 30 '25 08:07 Byrby

Same issues

AI-Agent-01 avatar Aug 05 '25 06:08 AI-Agent-01

Yup, cut off markers here too. Marker is a simple react view that can have an expanded/collapsed state.

Noticed when upgrading our app from Expo 52 old arch => Expo 53 new arch

LeunensMichiel avatar Aug 07 '25 07:08 LeunensMichiel

also having this issue. i would respectfully ask the collaborators to stop closing these tickets and actually look into this. seen this error a few times and it always gets closed off without actually providing a clear fix. downgrading to 1.20.1 isnt really a solution.

androbro avatar Aug 09 '25 08:08 androbro

Same issue.

scd8418 avatar Aug 13 '25 21:08 scd8418

when I changed command from npx expo start --ios to npx expo run:ios it stops crashing, yet still giving me this error in the console

laicai168-forreal avatar Aug 16 '25 03:08 laicai168-forreal

Faced same issue in my react native expo project, markers images get flicker and in some devices that image getting cut from either of the side. I also upgrade the version to 1.24.2 from 1.20.1 which i suggested by npx expo install react-native-maps and also try 1.25.3 which is latest now but after upgrading the version to different version than 1.20.1 get this TurboModuleRegistry.getEnforcing(…): ‘RNMapsAirModule’ Could Not Be Found” error. My expo version is (expo: "~53.0.15")

I’m facing the same issue in my Expo SDK 53 project (expo: "~53.0.15").

With [email protected], the app works but marker images flicker continuously and sometimes gets cut off on certain devices.

When upgrading to 1.24.2 (via npm i [email protected]) or 1.25.3 (latest), the app crashes with:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNMapsAirModule' could not be found. Verify that a module by this name is registered in the native binary. js engine: hermes

This issue occurs both in Expo Go and in development/production builds.

Environment:

Expo SDK: 53

React Native Maps: 1.20.1 (works but flickers), 1.24.2+ (crashes)

React Native: 0.79.4 (Expo SDK 53 default)

Platform: Android (tested), sometimes also affect iOS

Is there a recommended version of react-native-maps that:

Fixes the flickering / cut-off marker images issue?

ravibhardwaj24 avatar Aug 22 '25 04:08 ravibhardwaj24

Faced same issue in my react native expo project, markers images get flicker and in some devices that image getting cut from either of the side. I also upgrade the version to 1.24.2 from 1.20.1 which i suggested by npx expo install react-native-maps and also try 1.25.3 which is latest now but after upgrading the version to different version than 1.20.1 get this TurboModuleRegistry.getEnforcing(…): ‘RNMapsAirModule’ Could Not Be Found” error. My expo version is (expo: "~53.0.15")

I’m facing the same issue in my Expo SDK 53 project (expo: "~53.0.15").

With [email protected], the app works but marker images flicker continuously and sometimes gets cut off on certain devices.

When upgrading to 1.24.2 (via npm i [email protected]) or 1.25.3 (latest), the app crashes with:

Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'RNMapsAirModule' could not be found. Verify that a module by this name is registered in the native binary. js engine: hermes

This issue occurs both in Expo Go and in development/production builds.

Environment:

Expo SDK: 53

React Native Maps: 1.20.1 (works but flickers), 1.24.2+ (crashes)

React Native: 0.79.4 (Expo SDK 53 default)

Platform: Android (tested), sometimes also affect iOS

Is there a recommended version of react-native-maps that:

Fixes the flickering / cut-off marker images issue?

Did you find a workaround? :(

AlejandroRM-DEV avatar Sep 26 '25 21:09 AlejandroRM-DEV

Please use the latest version of the lib with the latest version of exp, those issues should be solved now.

if not please open a new ticket, but the stability has been significantly improving in latest releases.

salah-ghanim avatar Oct 05 '25 13:10 salah-ghanim

Still not fixed when I update to latest version, and added the react-native-maps in plugins when you run expo prebuild --clean the google api key will not be added to android manifest, so the app will crash, API key not found.

But when I reverted back to 1.20.1 then run expo prebuild --clean the api key will now be added to android manifest

expo: 54 react-native-maps: latest

ksdagun avatar Jan 14 '26 05:01 ksdagun

Also having all these problems, tried upgrading, but it just crashes the app instead and doesn't solve the problem.

Milwaukey avatar Jan 17 '26 16:01 Milwaukey