@@ -59,6 +59,7 @@ Finally, this library got the version **1.0.0**. More than **5k downloads** and
5959- [ AppleHeader] ( https://github.com/WrathChaos/react-native-apple-header )
6060- [ ModernHeader] ( https://github.com/WrathChaos/react-native-modern-header )
6161- [ ClassicHeader] ( https://github.com/WrathChaos/react-native-classic-header )
62+ - [ ProfileHeader] ( https://github.com/WrathChaos/react-native-profile-header )
6263
6364## Installation
6465
@@ -80,7 +81,8 @@ npm i @freakycoder/react-native-header-view
8081" react-native-gorgeous-header" : " >= 0.1.0" ,
8182" react-native-classic-header" : " >= 0.1.0" ,
8283" react-native-modern-header" : " >= 0.1.0" ,
83- " react-native-apple-header" : " >= 0.1.0"
84+ " react-native-apple-header" : " >= 0.1.0" ,
85+ " react-native-profile-header" : " >= 0.1.0" ,
8486```
8587
8688# Usage
@@ -166,6 +168,14 @@ import { ClassicHeader } from "@freakycoder/react-native-header-view";
166168/ > ;
167169```
168170
171+ ## Profile Header Usage
172+
173+ ``` jsx
174+ import { ProfileHeader } from " @freakycoder/react-native-header-view" ;
175+
176+ < ProfileHeader / > ;
177+ ```
178+
169179# Configuration - Props
170180
171181## Gorgeous Header Props
@@ -257,6 +267,30 @@ import { ClassicHeader } from "@freakycoder/react-native-header-view";
257267| centerComponent | component | Icon | set the center component |
258268| centerComponentStyle | style | style | set the center component's style |
259269
270+ ## ProfileHeader Props
271+
272+ | Property | Type | Default | Description |
273+ | ---------------------------- | :-------: | :-------: | --------------------------------------------------------------------------------------- |
274+ | onLeftButtonPress | function | undefined | set the logic for left aligned button |
275+ | onProfilePicPress | function | undefined | set the logic for profile picture |
276+ | onFirstIconPress | function | undefined | set the logic for first icon button |
277+ | onSecondIconPress | function | undefined | set the logic for second icon button |
278+ | onThirdIconPress | function | undefined | set the logic for third icon button |
279+ | profileImageSource | image | default | change the profile image source |
280+ | leftAlignedButtonImageSource | image | default | change the left aligned button image source |
281+ | firstIconImageSource | image | default | change the first icon image source |
282+ | secondIconImageSource | image | default | change the second icon image source |
283+ | thirdIconImageSource | image | default | change the third icon image source |
284+ | titleText | string | undefined | change the title text |
285+ | height | number | 50 | change the profile header's height |
286+ | backgroundColor | color | #fff | change the profile header's background color |
287+ | leftButtonComponent | component | Image | set your own component instead of default left aligned Button Image |
288+ | disableFirstIcon | boolean | false | disable the first icon |
289+ | disableSecondIcon | boolean | false | disable the second icon |
290+ | disableThirdIcon | boolean | false | disable the third icon |
291+ | disableLeftAlignedButton | boolean | false | disable the left aligned icon |
292+ | ImageComponent | component | Image | set your own Image component instead of default react native Image such as; ` FastImage ` |
293+
260294# Change Log
261295
262296## [ 0.4.13] ( https://github.com/WrathChaos/react-native-header-view/tree/0.4.13 ) (2019-11-22)
0 commit comments