Correctly type style prop

This commit is contained in:
Simon
2018-09-06 16:55:16 -05:00
parent f2af5911a3
commit a4ae94c2de
+4 -1
View File
@@ -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<ViewStyleRaw>;
type TextStyle = StyleProp<TextStyleRaw>;
export interface ActionButtonProps {
actions?: string[] | JSX.Element[] | Array<{