From a4ae94c2dec9de1c490df7ed4aa0cfedd1d40012 Mon Sep 17 00:00:00 2001 From: Simon Date: Thu, 6 Sep 2018 16:55:16 -0500 Subject: [PATCH] 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<{