Closed tomzaku closed 4 years ago
Any updates on this? :)
I made this, but didn't finish...
declare module "react-native-textinput-effects" {
import {
TextInputProps,
ViewStyle,
StyleProp,
TextStyle,
EasingFunction
} from "react-native";
interface CommonProps extends TextInputProps {
label?: string;
value?: string;
defaultValue?: string;
style?: StyleProp<ViewStyle>;
inputStyle?: StyleProp<TextStyle>;
labelStyle?: StyleProp<ViewStyle>;
inputPadding?: number;
easing?: EasingFunction;
animationDuration?: number;
useNativeDriver?: boolean;
editable?: boolean;
height?: number;
}
interface WithIconProps extends CommonProps {
iconClass: React.ComponentClass<any, any>;
iconName: string;
iconColor?: string;
iconSize?: number;
}
interface SaeProps extends WithIconProps {}
class Sae extends React.Component<SaeProps> {
labelHeight?: number;
}
interface FumiProps extends WithIconProps {
iconWidth?: number;
passiveIconColor?: WithIconProps["iconColor"];
}
class Fumi extends React.Component<FumiProps> {}
}
Types are added in version 0.6.1
thanks to #118
This is a good idea. I'll try implementing this soon.