You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue
Android build fails because buildReadableMap no longer exists in React Native ≥ 0.76. RNMBXModule.kt still imports and calls it, causing a compile error:
Unresolved reference 'buildReadableMap'
Environment
React Native: 0.76+ (Expo SDK 52–53)
Mapbox: 10.1.45 / 10.2.7
Fix
Replace buildReadableMap with Arguments.createMap() in RNMBXModule.kt:
-import com.facebook.react.bridge.buildReadableMap+import com.facebook.react.bridge.Arguments- fun addCustomHeaderWithOptions(..., options: ReadableMap? = buildReadableMap { }) {+ fun addCustomHeaderWithOptions(..., options: ReadableMap? = Arguments.createMap()) {
Result
Build succeeds again on React Native ≥ 0.76.
struckchure, YBostelaar, e-e, IhorReactNative and MiceBishop