InputRow allows the user to input text. It will render an icon or a label if either of the props are provided, and it always renders a TextInput. If a label prop is provided, the TextInput is aligned to the right of the row.
InputRow composes InputRowCell, PrimaryText, and PrimaryTextInput. You can use these components to create your own custom InputRow.
To have provide borders, wrap this component (and any other rows) in an InputGroup.
type: node
defaultValue: true
type: node
type: string
type: number
type: func
type: string
import { InputRow } from 'panza'
<InputRow
placeholder='Basic Input'
value={value}
editable
onChangeText={(text) => {
props.onChangeText(text)
}}
/>
import { InputRow } from 'panza'
<InputRow
label='Basic Input with Label'
placeholder='Your value'
value={value}
onChangeText={onChangeText}
/>
import { InputRow, SearchIcon } from 'panza'
<InputRow
icon={<SearchIcon />}
textAlign='left'
editable={this.state.editable}
placeholder='Input with icon'
/>
import {
InputGroup,
InputToggle,
InputRow,
SearchIcon
} from 'panza'
<InputGroup label='ROW INPUT' inset={16} mt={3}>
<InputToggle
value={this.state.editable}
onTintColor='warning'
onValueChange={(editable) => this.setState({ editable })}
label='Editable?'
/>
<InputRow
placeholder='Basic Input'
value={this.state.basic}
editable={this.state.editable}
onChangeText={(basic) => this.setState({ basic })} />
<InputRow
label='Basic Input with Label'
placeholder='Your value'
value={this.state.label}
editable={this.state.editable}
onChangeText={(label) => this.setState({ label })} />
<InputRow
icon={<SearchIcon />}
textAlign='left'
editable={this.state.editable}
placeholder='Input with icon' />
</InputGroup>