[Bug]: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
Mapbox Implementation
Mapbox
Mapbox Version
11.8.0
React Native Version
0.80.0
Platform
Android
@rnmapbox/maps version
10.1.38, 10.1.36, 10.1.33
Standalone component to reproduce
import React from 'react';
import {
MapView,
ShapeSource,
LineLayer,
Camera,
} from '@rnmapbox/maps';
const aLine = {
type: 'LineString',
coordinates: [
[-74.00597, 40.71427],
[-74.00697, 40.71527],
],
};
class BugReportExample extends React.Component {
render() {
return (
<MapView style={{flex: 1}}>
<Camera centerCoordinate={[-74.00597, 40.71427]} zoomLevel={14} />
<ShapeSource id="idStreetLayer" shape={aLine}>
<LineLayer id="idStreetLayer" />
</ShapeSource>
</MapView>
);
}
}
Observed behavior and steps to reproduce
Hello everyone,
I'm encountering an issue with React Native Mapbox where I get the following error:
Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
I've tried several versions of the rnmapbox package (10.1.39, 10.1.38, 10.1.36, 10.1.33) but without success.
I also saw some people mentioning react-native-reanimated. I'm currently using version "react-native-reanimated": "^3.18.0".
Thanks in advance for your help.
Expected behavior
No response
Notes / preliminary analysis
No response
Additional links and references
No response
+1
Same issue here using: Kotlin: "2.1.21", react-native: "80.0" mapbox: "10.1.39"
Here is the full list of issues I see:
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotationManager.kt:72:41 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotationManager.kt:72:79 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:37:50 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:45:50 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:98:33 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:104:57 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt:43:17 'surfaceId' hides member of supertype 'Event' and needs an 'override' modifier.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt:44:17 'viewTag' hides member of supertype 'Event' and needs an 'override' modifier.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt:45:17 'eventName' hides member of supertype 'Event' and needs an 'override' modifier.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:76:20 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:167:55 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:175:39 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:179:64 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:195:40 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:196:58 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:245:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:246:26 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:247:104 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:249:37 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:269:22 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:274:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:275:26 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:279:38 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:27:22 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:27:43 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:27:86 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:28:45 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:28:65 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocation.kt:166:50 Assignment type mismatch: actual type is 'Int?', but 'Int' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt:112:61 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:142:39 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:143:41 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:164:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:167:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:170:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:173:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:176:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:179:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:182:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:185:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:188:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:191:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:194:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:197:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:200:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:210:34 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:260:48 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:285:45 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:290:42 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:305:44 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:315:41 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleImportManager.kt:55:40 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleValue.kt:226:26 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleValue.kt:227:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt:68:32 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt:50:64 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt:54:56 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:85:25 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:106:35 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:109:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:161:26 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXTileSourceManager.kt:43:53 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXTileSourceManager.kt:44:43 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXTileSourceManager.kt:45:43 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt:33:26 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/Dynamic.kt:58:46 Argument type mismatch: actual type is 'String?', but 'String' was expected.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/Dynamic.kt:59:40 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'.
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/Dynamic.kt:60:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
Same issue here using: Kotlin: "2.1.21", react-native: "80.0" mapbox: "10.1.39"
Here is the full list of issues I see:
e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotationManager.kt:72:41 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/annotation/RNMBXPointAnnotationManager.kt:72:79 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:37:50 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:45:50 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:98:33 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXCameraManager.kt:104:57 Argument type mismatch: actual type is 'String?', but 'String' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt:43:17 'surfaceId' hides member of supertype 'Event' and needs an 'override' modifier. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt:44:17 'viewTag' hides member of supertype 'Event' and needs an 'override' modifier. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/camera/RNMBXViewport.kt:45:17 'eventName' hides member of supertype 'Event' and needs an 'override' modifier. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:76:20 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:167:55 Argument type mismatch: actual type is 'String?', but 'String' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:175:39 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:179:64 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:195:40 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:196:58 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:245:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:246:26 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:247:104 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:249:37 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:269:22 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:274:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:275:26 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/images/RNMBXImagesManager.kt:279:38 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:27:22 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:27:43 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:27:86 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:28:45 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXCustomLocationProviderManager.kt:28:65 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocation.kt:166:50 Assignment type mismatch: actual type is 'Int?', but 'Int' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/location/RNMBXNativeUserLocationManager.kt:112:61 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:142:39 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:143:41 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:164:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:167:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:170:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:173:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:176:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:179:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:182:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:185:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:188:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:191:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:194:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:197:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:200:23 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:210:34 Argument type mismatch: actual type is 'String?', but 'String' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:260:48 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:285:45 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:290:42 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:305:44 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/mapview/RNMBXMapViewManager.kt:315:41 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleImportManager.kt:55:40 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleValue.kt:226:26 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/RNMBXStyleValue.kt:227:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/layers/RNMBXModelLayerManager.kt:68:32 Argument type mismatch: actual type is 'String?', but 'String' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt:50:64 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXRasterSourceManager.kt:54:56 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:85:25 Argument type mismatch: actual type is 'String?', but 'String' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:106:35 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:109:42 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXShapeSourceManager.kt:161:26 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXTileSourceManager.kt:43:53 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXTileSourceManager.kt:44:43 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXTileSourceManager.kt:45:43 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/components/styles/sources/RNMBXVectorSourceManager.kt:33:26 Argument type mismatch: actual type is 'ReadableMap?', but 'ReadableMap' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/Dynamic.kt:58:46 Argument type mismatch: actual type is 'String?', but 'String' was expected. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/Dynamic.kt:59:40 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableArray?'. e: file:///Users/kamiranoff/dev/bb/heyah/node_modules/@rnmapbox/maps/android/src/main/java/com/rnmapbox/rnmbx/utils/extensions/Dynamic.kt:60:36 Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'ReadableMap?'.
I have exactly the same problem, I will try to correct this if it works I will share a patch.
@lvothnrv I used this one : (Not sure exactly what is inside but fixed the compilation issues...) https://github.com/rnmapbox/maps/issues/3753#issuecomment-2993077123
@lvothnrv I used this one : (Not sure exactly what is inside but fixed the compilation issues...) #3753 (comment)
Damn it works perfectly, I had started to investigate aha. Thanks my friend :)
Should be fixed with https://www.npmjs.com/package/@rnmapbox/maps/v/10.1.41-rc.3