|
| 1 | +import * as React from 'react'; |
| 2 | + |
| 3 | +export interface makeReactNativeFieldProps { |
| 4 | + name: string; |
| 5 | +} |
| 6 | + |
| 7 | +export interface withInputTypePropsProps { |
| 8 | + type: string; |
| 9 | +} |
| 10 | + |
| 11 | +export interface withErrorProps { |
| 12 | + name: string; |
| 13 | +} |
| 14 | + |
| 15 | +export interface withTouchedProps { |
| 16 | + name: string; |
| 17 | +} |
| 18 | + |
| 19 | +export type makeInputGreatAgainProps = makeReactNativeFieldProps & |
| 20 | + withInputTypePropsProps & |
| 21 | + withErrorProps & |
| 22 | + withTouchedProps; |
| 23 | + |
| 24 | +export function makeReactNativeField<Props>( |
| 25 | + WrappedComponent: React.ComponentType<Props> |
| 26 | +): React.ComponentClass<Props & makeReactNativeFieldProps>; |
| 27 | + |
| 28 | +export function withError<Props>( |
| 29 | + WrappedComponent: React.ComponentType<Props> |
| 30 | +): React.ComponentClass<Props & withErrorProps>; |
| 31 | + |
| 32 | +export function withInputTypeProps<Props>( |
| 33 | + WrappedComponent: React.ComponentType<Props> |
| 34 | +): React.ComponentClass<Props & withInputTypePropsProps>; |
| 35 | + |
| 36 | +export function withFormik<Props>( |
| 37 | + WrappedComponent: React.ComponentType<Props> |
| 38 | +): React.ComponentClass<Props>; |
| 39 | + |
| 40 | +export function withNextInputAutoFocusInput<Props>( |
| 41 | + WrappedComponent: React.ComponentType<Props> |
| 42 | +): React.ComponentClass<Props>; |
| 43 | + |
| 44 | +export function withNextInputAutoFocusForm<Props>( |
| 45 | + WrappedComponent: React.ComponentType<Props> |
| 46 | +): React.ComponentClass<Props>; |
| 47 | + |
| 48 | +export function withPickerValues<Props>( |
| 49 | + WrappedComponent: React.ComponentType<Props> |
| 50 | +): React.ComponentClass<Props>; |
| 51 | + |
| 52 | +export function withTouched<Props>( |
| 53 | + WrappedComponent: React.ComponentType<Props> |
| 54 | +): React.ComponentClass<Props & withTouchedProps>; |
| 55 | + |
| 56 | +export function makeInputGreatAgain<Props>( |
| 57 | + WrappedComponent: React.ComponentType<Props> |
| 58 | +): React.ComponentClass<Props & makeInputGreatAgainProps>; |
| 59 | + |
| 60 | +export default makeInputGreatAgain; |
0 commit comments