Skip to content

Commit fb8e460

Browse files
committed
fix: use StyleProp<ViewStyle> on BaseToastProps type
1 parent 142582f commit fb8e460

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/types/index.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
import React from 'react';
2-
import { TextStyle, TouchableOpacityProps, ViewStyle } from 'react-native';
2+
import {
3+
StyleProp,
4+
TextStyle,
5+
TouchableOpacityProps,
6+
ViewStyle
7+
} from 'react-native';
38

49
export type ReactChildren = React.ReactNode;
510

@@ -81,10 +86,10 @@ export type BaseToastProps = {
8186
text2?: string;
8287
onPress?: () => void;
8388
activeOpacity?: number;
84-
style?: ViewStyle;
89+
style?: StyleProp<ViewStyle>;
8590
touchableContainerProps?: TouchableOpacityProps;
86-
contentContainerStyle?: ViewStyle;
87-
contentContainerProps?: ViewStyle;
91+
contentContainerStyle?: StyleProp<ViewStyle>;
92+
contentContainerProps?: StyleProp<ViewStyle>;
8893
text1Style?: TextStyle;
8994
text1NumberOfLines?: number;
9095
text1Props?: TextStyle;

0 commit comments

Comments
 (0)