react-native-maps 1.21.0-alpha.94 → 1.21.0-alpha.96

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.
Files changed (2) hide show
  1. package/lib/MapMarker.js +5 -11
  2. package/package.json +1 -5
package/lib/MapMarker.js CHANGED
@@ -120,20 +120,14 @@ class MapMarker extends React.Component {
120
120
  this.fabricMarker = !(react_native_1.Platform.OS === 'ios' && provider === ProviderConstants_1.PROVIDER_GOOGLE);
121
121
  }
122
122
  let icon;
123
- if (this.props.icon) {
124
- icon = react_native_1.Image.resolveAssetSource(this.props.icon) || {};
125
- icon = icon.uri;
126
- if (this.fabricMarker) {
127
- icon = (0, fixImageProp_1.fixImageProp)(this.props.icon);
128
- }
123
+ if (this.props.icon && this.fabricMarker) {
124
+ icon = (0, fixImageProp_1.fixImageProp)(this.props.icon);
129
125
  }
130
- const AIRMapMarker = this.getNativeComponent();
131
126
  let image;
132
- if (this.props.image) {
133
- if (this.fabricMarker) {
134
- image = (0, fixImageProp_1.fixImageProp)(this.props.image);
135
- }
127
+ if (this.props.image && this.fabricMarker) {
128
+ image = (0, fixImageProp_1.fixImageProp)(this.props.image);
136
129
  }
130
+ const AIRMapMarker = this.getNativeComponent();
137
131
  return (<AIRMapMarker {...this.props} ref={this.marker}
138
132
  // @ts-ignore
139
133
  image={image}
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.21.0-alpha.94",
8
+ "version": "1.21.0-alpha.96",
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "lint": "eslint . --max-warnings 0",
@@ -95,10 +95,6 @@
95
95
  "name": "RNMapsSpecs",
96
96
  "type": "all",
97
97
  "jsSrcsDir": "./lib/specs",
98
- "outputDir": {
99
- "ios": "ios/generated",
100
- "android": "android/generated"
101
- },
102
98
  "android": {
103
99
  "javaPackageName": "com.rnmaps.fabric"
104
100
  }