File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
android/src/main/java/com/rnmapbox/rnmbx/modules Expand file tree Collapse file tree 3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,8 @@ class RNMBXModule(private val mReactContext: ReactApplicationContext) : ReactCon
114114 val locationModuleCallbackNames: MutableMap <String , String > = HashMap ()
115115 locationModuleCallbackNames[" Update" ] = RNMBXLocationModule .LOCATION_UPDATE
116116 return MapBuilder .builder<String , Any >()
117+ // Deprecated: means v10 or later, always true. Will be removed in next major version.
118+ .put(" MapboxV10" , true )
117119 .put(" StyleURL" , styleURLS)
118120 .put(" EventTypes" , eventTypes)
119121 .put(" StyleSource" , styleSourceConsts)
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ class RNMBXModule : NSObject {
2323 @objc
2424 func constantsToExport( ) -> [ AnyHashable : Any ] ! {
2525 return [
26+ // Deprecated: means v10 or later, always true. Will be removed in next major version.
27+ " MapboxV10 " : true ,
2628 " StyleURL " :
2729 [
2830 " Street " : StyleURI . streets. rawValue,
Original file line number Diff line number Diff line change @@ -99,6 +99,8 @@ NativeModules.RNMBXModule = {
9999 setTelemetryEnabled : jest . fn ( ) ,
100100 setConnected : jest . fn ( ) ,
101101 clearData : jest . fn ( ) ,
102+ // Deprecated: means v10 or later, always true. Will be removed in next major version.
103+ MapboxV10 : true ,
102104} ;
103105
104106NativeModules . RNMBXOfflineModule = nativeModule ( {
You can’t perform that action at this time.
0 commit comments