Commit 3769a378 authored by wind.wang's avatar wind.wang

fix android crash

parent 34346382
...@@ -138,11 +138,11 @@ export default class Marker extends Component { ...@@ -138,11 +138,11 @@ export default class Marker extends Component {
onInfoWindowPress: PropTypes.func onInfoWindowPress: PropTypes.func
}; };
componentDidUpdate() { // componentDidUpdate() {
if (this.icon && Platform.OS === "android") { // if (this.icon && Platform.OS === "android") {
setTimeout(() => this.sendCommand("update"), 0); // setTimeout(() => this.sendCommand("update"), 0);
} // }
} // }
name = "AMapMarker"; name = "AMapMarker";
icon = null; icon = null;
......
This diff is collapsed.
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
"name": "@hisense/react-native-amap-sdk", "name": "@hisense/react-native-amap-sdk",
"license": "MIT", "license": "MIT",
"author": "Wind.Wang", "author": "Wind.Wang",
"version": "1.0.3", "version": "1.0.5",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment