implementing pages and styles
This commit is contained in:
21
react-native/app/components/input/text/component.tsx
Normal file
21
react-native/app/components/input/text/component.tsx
Normal file
@@ -0,0 +1,21 @@
|
||||
import React from 'react'
|
||||
import { LabelInput, WrapperInputText } from './styles';
|
||||
|
||||
type IInputText = {
|
||||
children?: object;
|
||||
placeholder: string;
|
||||
label: string;
|
||||
onChangeText?: any,
|
||||
value?: any
|
||||
}
|
||||
export const InputText = (props: IInputText)=>{
|
||||
|
||||
const {children, placeholder, label, onChangeText, value} = props
|
||||
|
||||
return (
|
||||
<>
|
||||
<LabelInput>{props.label}</LabelInput>
|
||||
<WrapperInputText value={props.value} onChangeText={props.onChangeText} placeholder={props.placeholder}></WrapperInputText>
|
||||
</>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user