mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-11-29 09:41:45 +00:00
Correctly type style prop
This commit is contained in:
+4
-1
@@ -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<{
|
||||
|
||||
Reference in New Issue
Block a user