Skip to content

Latest commit

 

History

History
57 lines (50 loc) · 1.78 KB

File metadata and controls

57 lines (50 loc) · 1.78 KB

Customize Search Bar

Steps to customize theme for Search Bar attributes:

Property Description
toolbarInputColor Background color for textbox in Header
toolbarIconSize Icon size in Search bar

Syntax

import React, { Component } from 'react-native';
import { Container, Header, Button, Icon, InputGroup, Input } from 'native-base';
import myTheme from './Themes/myTheme';
export default class ThemeSearchBarExample extends Component {
    render() {
        return (
            <Container theme={myTheme}>
                <Header searchBar rounded>
                    <InputGroup>
                        <Icon name='ios-search' />
                        <Input placeholder='Search' />
                        <Icon name='ios-people' />
                    </InputGroup>
                    <Button transparent>
                        Search
                    </Button>
                </Header>
            </Container>
        );
    }
}