mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Merge pull request #28685 from sstur/fixRNMUI
[react-native-material-ui] Correctly type style prop
This commit is contained in:
+5
-2
@@ -1,11 +1,14 @@
|
||||
// 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 <https://github.com/iRoachie>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// 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';
|
||||
|
||||
export type ViewStyle = StyleProp<ViewStyleRaw>;
|
||||
export type TextStyle = StyleProp<TextStyleRaw>;
|
||||
|
||||
export interface ActionButtonProps {
|
||||
actions?: string[] | JSX.Element[] | Array<{
|
||||
|
||||
Reference in New Issue
Block a user