From a4ae94c2dec9de1c490df7ed4aa0cfedd1d40012 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 6 Sep 2018 16:55:16 -0500 Subject: [PATCH 1/3] Correctly type style prop --- types/react-native-material-ui/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/react-native-material-ui/index.d.ts b/types/react-native-material-ui/index.d.ts index 91ae62a3fb..7b4d56fd0c 100644 --- a/types/react-native-material-ui/index.d.ts +++ b/types/react-native-material-ui/index.d.ts @@ -5,7 +5,10 @@ // TypeScript Version: 2.8 import { Component } from 'react'; -import { ViewStyle, TextStyle, Image } from 'react-native'; +import { StyleProp, ViewStyle as ViewStyleRaw, TextStyle as TextStyleRaw, Image } from 'react-native'; + +type ViewStyle = StyleProp; +type TextStyle = StyleProp; export interface ActionButtonProps { actions?: string[] | JSX.Element[] | Array<{ From a7f8850a0156677d5a5aace88451bd75e68eb845 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 6 Sep 2018 16:59:07 -0500 Subject: [PATCH 2/3] Version bump --- types/react-native-material-ui/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-native-material-ui/index.d.ts b/types/react-native-material-ui/index.d.ts index 7b4d56fd0c..c3dac63321 100644 --- a/types/react-native-material-ui/index.d.ts +++ b/types/react-native-material-ui/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-native-material-ui 1.30 +// Type definitions for react-native-material-ui 1.31 // Project: https://github.com/xotahal/react-native-material-ui // Definitions by: Kyle Roach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped From 42a696eb7417e31892e73300d47786a5874dab1d Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 9 Sep 2018 15:55:12 -0500 Subject: [PATCH 3/3] Export helper types ViewStyle and TextStyle --- types/react-native-material-ui/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/react-native-material-ui/index.d.ts b/types/react-native-material-ui/index.d.ts index c3dac63321..b215820f2b 100644 --- a/types/react-native-material-ui/index.d.ts +++ b/types/react-native-material-ui/index.d.ts @@ -7,8 +7,8 @@ import { Component } from 'react'; import { StyleProp, ViewStyle as ViewStyleRaw, TextStyle as TextStyleRaw, Image } from 'react-native'; -type ViewStyle = StyleProp; -type TextStyle = StyleProp; +export type ViewStyle = StyleProp; +export type TextStyle = StyleProp; export interface ActionButtonProps { actions?: string[] | JSX.Element[] | Array<{