Steps to customize theme for InputGroup attributes:
| Property | Description |
|---|---|
| inputFontSize | Input font size for textbox |
| textColor | Input text color for textbox |
| inputBorderColor | Border color for textbox |
| inputSuccessBorderColor | Border color for textbox with valid input |
| inputErrorBorderColor | Border color for textbox with invalid input |
| inputColorPlaceholder | Placeholder color for textbox |
| inputHeightBase | Padding between textbox |
| inputPaddingLeftIcon | Padding between icon and text for textbox |
Syntax
import React, { Component } from 'react-native';
import { Container, Content, InputGroup, Input } from 'native-base';
import myTheme from './Themes/myTheme';
export default class ThemeInputGroupExample extends Component {
render() {
return (
<Container>
<Content theme={myTheme}>
<InputGroup borderType='underline' >
<Input placeholder='Underlined Textbox' />
</InputGroup>
</Content>
</Container>
);
}
}