react-native-maps 1.13.1 → 1.14.0
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.
package/android/build.gradle
CHANGED
|
@@ -57,7 +57,6 @@ public class MapManager extends ViewGroupManager<MapView> {
|
|
|
57
57
|
|
|
58
58
|
public MapManager(ReactApplicationContext context) {
|
|
59
59
|
this.appContext = context;
|
|
60
|
-
this.googleMapOptions = new GoogleMapOptions();
|
|
61
60
|
}
|
|
62
61
|
|
|
63
62
|
public MapMarkerManager getMarkerManager() {
|
|
@@ -80,6 +79,7 @@ public class MapManager extends ViewGroupManager<MapView> {
|
|
|
80
79
|
|
|
81
80
|
@Override
|
|
82
81
|
protected MapView createViewInstance(int reactTag, @NonNull ThemedReactContext reactContext, @Nullable ReactStylesDiffMap initialProps, @Nullable StateWrapper stateWrapper) {
|
|
82
|
+
this.googleMapOptions = new GoogleMapOptions();
|
|
83
83
|
if (initialProps != null) {
|
|
84
84
|
if (initialProps.getString("googleMapId") != null) {
|
|
85
85
|
googleMapOptions.mapId(initialProps.getString("googleMapId"));
|
|
@@ -19,7 +19,7 @@ export declare const NOT_SUPPORTED: ImplementationStatus;
|
|
|
19
19
|
export declare const ProviderContext: import("react").Context<Provider>;
|
|
20
20
|
export declare function getNativeMapName(provider: Provider): "AIRMap" | "AIRGoogleMap";
|
|
21
21
|
export declare const createNotSupportedComponent: (message: string) => () => null;
|
|
22
|
-
export declare const googleMapIsInstalled
|
|
22
|
+
export declare const googleMapIsInstalled: boolean;
|
|
23
23
|
export default function decorateMapComponent<Type extends Component>(Component: Type, componentName: ComponentName, providers: Providers): Type;
|
|
24
24
|
type ImplementationStatus = 'SUPPORTED' | 'USES_DEFAULT_IMPLEMENTATION' | 'NOT_SUPPORTED';
|
|
25
25
|
type Providers = {
|
|
@@ -26,7 +26,7 @@ const createNotSupportedComponent = (message) => () => {
|
|
|
26
26
|
return null;
|
|
27
27
|
};
|
|
28
28
|
exports.createNotSupportedComponent = createNotSupportedComponent;
|
|
29
|
-
exports.googleMapIsInstalled = !!react_native_1.UIManager.
|
|
29
|
+
exports.googleMapIsInstalled = !!react_native_1.UIManager.hasViewManagerConfig(getNativeMapName(ProviderConstants_1.PROVIDER_GOOGLE));
|
|
30
30
|
function decorateMapComponent(Component, componentName, providers) {
|
|
31
31
|
const components = {};
|
|
32
32
|
const getDefaultComponent = () => (0, react_native_1.requireNativeComponent)(getNativeComponentName(undefined, componentName));
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"author": "Leland Richardson <leland.m.richardson@gmail.com>",
|
|
7
7
|
"homepage": "https://github.com/react-native-maps/react-native-maps#readme",
|
|
8
|
-
"version": "1.
|
|
8
|
+
"version": "1.14.0",
|
|
9
9
|
"license": "MIT",
|
|
10
10
|
"scripts": {
|
|
11
11
|
"lint": "eslint . --max-warnings 0",
|