react-native-maps 0.31.0-beta.5 → 0.31.0-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,6 +10,8 @@ import android.util.Base64;
|
|
|
10
10
|
import android.util.DisplayMetrics;
|
|
11
11
|
import android.util.Log;
|
|
12
12
|
|
|
13
|
+
import androidx.annotation.NonNull;
|
|
14
|
+
|
|
13
15
|
import com.facebook.react.bridge.Promise;
|
|
14
16
|
import com.facebook.react.bridge.ReactApplicationContext;
|
|
15
17
|
import com.facebook.react.bridge.ReactContextBaseJavaModule;
|
|
@@ -23,6 +25,7 @@ import com.facebook.react.uimanager.UIBlock;
|
|
|
23
25
|
import com.facebook.react.uimanager.UIManagerModule;
|
|
24
26
|
import com.google.android.gms.maps.GoogleMap;
|
|
25
27
|
import com.google.android.gms.maps.MapsInitializer;
|
|
28
|
+
import com.google.android.gms.maps.OnMapsSdkInitializedCallback;
|
|
26
29
|
import com.google.android.gms.maps.model.CameraPosition;
|
|
27
30
|
import com.google.android.gms.maps.model.LatLng;
|
|
28
31
|
|
|
@@ -365,9 +368,12 @@ public class AirMapModule extends ReactContextBaseJavaModule {
|
|
|
365
368
|
@Override
|
|
366
369
|
public void execute(NativeViewHierarchyManager nvhm)
|
|
367
370
|
{
|
|
368
|
-
MapsInitializer.initialize(context, MapsInitializer.Renderer.LATEST, (
|
|
369
|
-
|
|
370
|
-
|
|
371
|
+
MapsInitializer.initialize(context, MapsInitializer.Renderer.LATEST, new OnMapsSdkInitializedCallback() {
|
|
372
|
+
@Override
|
|
373
|
+
public void onMapsSdkInitialized(@NonNull MapsInitializer.Renderer renderer) {
|
|
374
|
+
Log.d("AirMapRenderer", renderer.toString());
|
|
375
|
+
promise.resolve(renderer.toString());
|
|
376
|
+
}
|
|
371
377
|
});
|
|
372
378
|
}
|
|
373
379
|
});
|
package/package.json
CHANGED