Files
bigbluebutton-tablet/react-native/app/components/input/text/component.tsx
Gustavo Emanuel Farias Rosa 8f6f537220 fix capitalize of inputs
2022-03-21 10:53:12 -03:00

43 lines
894 B
TypeScript

import React from 'react';
import {LabelInput, WrapperInputText} from './styles';
type IInputText = {
children?: object;
placeholder: string;
label: string;
onChangeText?: any;
value?: any;
autoCapitalize?: 'none';
autoCorrect?: false | true;
autoComplete?: 'off';
allowFontScaling?: true | false;
};
export const InputText = (props: IInputText) => {
const {
children,
placeholder,
label,
onChangeText,
value,
autoCapitalize,
autoCorrect,
autoComplete,
allowFontScaling,
} = props;
return (
<>
<LabelInput>{label}</LabelInput>
<WrapperInputText
allowFontScaling={allowFontScaling}
autoComplete={autoComplete}
autoCorrect={autoCorrect}
autoCapitalize={autoCapitalize}
value={value}
onChangeText={onChangeText}
placeholder={placeholder}
/>
</>
);
};