Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ npm i @freakycoder/react-native-header-view
## Gorgeous Header Usage

```jsx
import { Gorgeous } from "@freakycoder/react-native-header-view";
import { GorgeousHeader } from "@freakycoder/react-native-header-view";

<Gorgeous onChangeText={(text) => console.log(text)} />;
<GorgeousHeader onChangeText={(text) => console.log(text)} />;
```

## Apple Header Usage
Expand Down Expand Up @@ -149,6 +149,7 @@ import { ClassicHeader } from "@freakycoder/react-native-header-view";
| searchIcon | asset | default | set your own icon for the search one |
| titleTextStyle | style | default | set your own style for title text |
| subtitleTextStyle | style | default | set your own style for subtitle text |
| searchBarStyle | style | default | set your own style for search text input container |
| searchInputStyle | style | default | set your own style for search text input |
| menuImageStyle | style | default | set your own style for hamburger menu image |
| menuImageSource | asset | default | set your own image instead of default hamburger menu image |
Expand Down
3 changes: 2 additions & 1 deletion lib/src/components/GorgeousHeader/GorgeousHeader.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ class GorgeousHeader extends Component {
subtitle,
searchIcon,
titleTextStyle,
searchBarStyle,
searchInputStyle,
subtitleTextStyle,
} = this.props;
Expand All @@ -55,7 +56,7 @@ class GorgeousHeader extends Component {
<Text style={subtitleTextStyle || styles.subtitleTextStyle}>
{subtitle}
</Text>
<View style={styles.searchBarStyle}>
<View style={searchBarStyle || styles.searchBarStyle}>
<Image
style={styles.searchImageStyle}
source={searchIcon || searchImage}
Expand Down