fix(lib/discord/types): use StyleProp for component style properties
This commit is contained in:
parent
bcb82e1f4f
commit
15499cbdab
1 changed files with 3 additions and 2 deletions
|
|
@ -6,6 +6,7 @@ import type {
|
|||
PressableProps,
|
||||
TextInputProps as RNTextInputProps,
|
||||
TextProps as RNTextProps,
|
||||
StyleProp,
|
||||
TextStyle,
|
||||
View,
|
||||
ViewProps,
|
||||
|
|
@ -343,7 +344,7 @@ export namespace DiscordModules {
|
|||
isClearable?: boolean
|
||||
|
||||
size?: TextFieldSize
|
||||
style?: ViewStyle | ViewStyle[]
|
||||
style?: StyleProp<ViewStyle>
|
||||
}
|
||||
|
||||
export type TextFieldSize = 'sm' | 'md' | 'lg'
|
||||
|
|
@ -519,7 +520,7 @@ export namespace DiscordModules {
|
|||
export interface TextProps extends RNTextProps {
|
||||
variant?: Styles.TextVariant
|
||||
color?: string
|
||||
style?: TextStyle
|
||||
style?: StyleProp<TextStyle>
|
||||
lineClamp?: number
|
||||
ellipsizeMode?: 'head' | 'middle' | 'tail' | 'clip'
|
||||
tabularNumbers?: boolean
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue