From e3380c414287a2f782b5690fc2806dda5cdbcdf8 Mon Sep 17 00:00:00 2001 From: Diego Antonelli <45102481+diego-antonelli@users.noreply.github.com> Date: Tue, 2 Apr 2019 14:12:48 +0200 Subject: [PATCH 1/3] Adding property activeOpacity Adding missing property to the typings --- types/react-native-star-rating/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/react-native-star-rating/index.d.ts b/types/react-native-star-rating/index.d.ts index a26002bf88..3e4e52c4d9 100644 --- a/types/react-native-star-rating/index.d.ts +++ b/types/react-native-star-rating/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native-star-rating 1.0 +// Type definitions for react-native-star-rating 1.1 // Project: https://github.com/djchie/react-native-star-rating // Definitions by: iRoachie // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -8,6 +8,11 @@ import * as React from 'react'; import { ImageURISource, StyleProp, ViewStyle } from 'react-native'; export interface StarRatingProps { + /** + * Number between 0 a 1 to determine the opacity of the button. + * Default is 0.2 + */ + activeOpacity?: number; /** * Style of the button containing the star. */ From ed3a9af8b0893504ad67005a59177b1f98d36f14 Mon Sep 17 00:00:00 2001 From: Diego Antonelli <45102481+diego-antonelli@users.noreply.github.com> Date: Mon, 8 Apr 2019 15:54:24 +0200 Subject: [PATCH 2/3] Updating comments --- types/react-native-star-rating/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-star-rating/index.d.ts b/types/react-native-star-rating/index.d.ts index 3e4e52c4d9..66751f8095 100644 --- a/types/react-native-star-rating/index.d.ts +++ b/types/react-native-star-rating/index.d.ts @@ -9,7 +9,7 @@ import { ImageURISource, StyleProp, ViewStyle } from 'react-native'; export interface StarRatingProps { /** - * Number between 0 a 1 to determine the opacity of the button. + * Number between 0 to 1 to determine the opacity of the button. * Default is 0.2 */ activeOpacity?: number; From 65a31c1ee669043c744b80956b5a50b17f69ea11 Mon Sep 17 00:00:00 2001 From: Diego Antonelli <45102481+diego-antonelli@users.noreply.github.com> Date: Mon, 8 Apr 2019 16:02:47 +0200 Subject: [PATCH 3/3] Fixing indentation --- types/react-native-star-rating/index.d.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/types/react-native-star-rating/index.d.ts b/types/react-native-star-rating/index.d.ts index 66751f8095..788a13d863 100644 --- a/types/react-native-star-rating/index.d.ts +++ b/types/react-native-star-rating/index.d.ts @@ -9,9 +9,9 @@ import { ImageURISource, StyleProp, ViewStyle } from 'react-native'; export interface StarRatingProps { /** - * Number between 0 to 1 to determine the opacity of the button. - * Default is 0.2 - */ + * Number between 0 to 1 to determine the opacity of the button. + * Default is 0.2 + */ activeOpacity?: number; /** * Style of the button containing the star.