Skip to content

Commit ee3e07f

Browse files
committed
ProfileHeader is here
1 parent 2fee6f5 commit ee3e07f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+45
-1304
lines changed

README.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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)
1.37 MB
Loading

example/__tests__/App-test.js

Lines changed: 0 additions & 14 deletions
This file was deleted.

example/android/app/_BUCK

Lines changed: 0 additions & 55 deletions
This file was deleted.

example/android/app/build.gradle

Lines changed: 0 additions & 219 deletions
This file was deleted.

example/android/app/build_defs.bzl

Lines changed: 0 additions & 19 deletions
This file was deleted.

example/android/app/debug.keystore

-2.2 KB
Binary file not shown.

example/android/app/proguard-rules.pro

Lines changed: 0 additions & 10 deletions
This file was deleted.

example/android/app/src/debug/AndroidManifest.xml

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)