Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
qiuxiang authored Aug 24, 2022
1 parent c187c27 commit 45cecc0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/marker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,9 @@ export default class extends Component<MarkerProps> {

render() {
const props = { ...this.props };
Reflect.set(props, "latLng", props.position);
// @ts-ignore android 不能用 position 作为属性,会发生冲突,也是个蛋疼的问题
// @ts-ignore android 不能用 position 作为属性,会发生冲突
props.latLng = props.position
// @ts-ignore
delete props.position;
if (props.children) {
props.children = (
Expand Down

0 comments on commit 45cecc0

Please sign in to comment.