@@ -12,6 +12,7 @@ import {
12
12
ImageStyle ,
13
13
ImageSourcePropType ,
14
14
} from "react-native" ;
15
+
15
16
/**
16
17
* ? Local Imports
17
18
*/
@@ -25,17 +26,11 @@ const PLACEHOLDER_COLOR = "#757575";
25
26
const ORIGINAL_VALUE = 0 ;
26
27
const ANIMATED_VALUE = 1 ;
27
28
28
- type CustomStyleProp = StyleProp < ViewStyle > | Array < StyleProp < ViewStyle > > ;
29
- type CustomTextStyleProp = StyleProp < TextStyle > | Array < StyleProp < TextStyle > > ;
30
- type CustomImageStyleProp =
31
- | StyleProp < ImageStyle >
32
- | Array < StyleProp < ImageStyle > > ;
33
-
34
29
export interface IInteractiveTextInputProps extends TextInputProps {
35
- style ?: CustomStyleProp ;
36
- textInputStyle ?: CustomTextStyleProp ;
37
- iconContainerStyle ?: CustomStyleProp ;
38
- iconImageStyle ?: CustomImageStyleProp ;
30
+ style ?: StyleProp < ViewStyle > ;
31
+ textInputStyle ?: StyleProp < TextStyle > ;
32
+ iconContainerStyle ?: StyleProp < ViewStyle > ;
33
+ iconImageStyle ?: StyleProp < ImageStyle > ;
39
34
iconImageSource ?: ImageSourcePropType ;
40
35
ImageComponent ?: any ;
41
36
IconComponent ?: any ;
@@ -143,7 +138,7 @@ export default class InteractiveTextInput extends React.Component<
143
138
144
139
render ( ) {
145
140
return (
146
- < View style = { styles . container } >
141
+ < View style = { [ styles . container , this . props . style ] } >
147
142
{ this . renderAnimatedTextInput ( ) }
148
143
{ this . renderIcon ( ) }
149
144
</ View >
0 commit comments