Skip to content

Commit 2ffb684

Browse files
sttzchristopherdro
authored andcommitted
Add Marker icon property introduced in react-native-maps#2650 to index.d.ts (react-native-maps#2705)
### 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.
1 parent c0bd0ff commit 2ffb684

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -254,6 +254,7 @@ declare module "react-native-maps" {
254254
title?: string;
255255
description?: string;
256256
image?: ImageURISource | ImageRequireSource;
257+
icon?: ImageURISource | ImageRequireSource;
257258
opacity?: number;
258259
pinColor?: string;
259260
coordinate: LatLng | AnimatedRegion;

0 commit comments

Comments
 (0)