Skip to content

Commit

Permalink
Add Marker icon property introduced in react-native-maps#2650 to inde…
Browse files Browse the repository at this point in the history
…x.d.ts

### Does any other open PR do the same thing?

No.

### What issue is this PR fixing?

With TypeScript, trying to use the Marker's icon property results in an error, since the `index.d.ts` does not yet declare the property that was added in react-native-maps#2650.

### How did you test this PR?

Tested by editing the `index.d.ts` locally. Since there are no functional changes, this is a trivial change.
  • Loading branch information
sttz committed Feb 24, 2019
1 parent 9e172fc commit 3ed253b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -254,6 +254,7 @@ declare module "react-native-maps" {
title?: string;
description?: string;
image?: ImageURISource | ImageRequireSource;
icon?: ImageURISource | ImageRequireSource;
opacity?: number;
pinColor?: string;
coordinate: LatLng | AnimatedRegion;
Expand Down

0 comments on commit 3ed253b

Please sign in to comment.