1
1
<img alt =" React Native Bottom Bar " src =" https://github.com/WrathChaos/react-native-header-view/blob/master/assets/Screenshots/logo.png " width =" 1050 " />
2
2
3
-
4
3
[ ![ Battle Tested ✅] ( https://img.shields.io/badge/-Battle--Tested%20%E2%9C%85-03666e?style=for-the-badge )] ( https://github.com/WrathChaos/react-native-button )
5
4
6
-
7
5
[ ![ Fully customizable Header View with multiple design options for React Native.] ( https://img.shields.io/badge/-Fully%20customizable%20Header%20View%20with%20multiple%20design%20options%20for%20React%20Native.-lightgrey?style=for-the-badge )] ( https://github.com/WrathChaos/react-native-header-view )
8
6
9
-
10
-
11
7
[ ![ npm version] ( https://img.shields.io/npm/v/@freakycoder/react-native-header-view.svg?style=for-the-badge )] ( https://www.npmjs.com/package/@freakycoder/react-native-header-view )
12
8
[ ![ npm] ( https://img.shields.io/npm/dt/@freakycoder/react-native-header-view.svg?style=for-the-badge )] ( https://www.npmjs.org/package/@freakycoder/react-native-header-view )
13
9
![ Platform - Android and iOS] ( https://img.shields.io/badge/platform-Android%20%7C%20iOS-blue.svg?style=for-the-badge )
14
10
[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-green.svg?style=for-the-badge )] ( https://opensource.org/licenses/MIT )
15
11
[ ![ styled with prettier] ( https://img.shields.io/badge/styled_with-prettier-ff69b4.svg?style=for-the-badge )] ( https://github.com/prettier/prettier )
16
12
17
-
18
13
<p align =" center " >
19
14
<img alt =" React Native Header View " src =" assets/Screenshots/ss3.png " width =" 49.7% " />
20
15
<img alt =" React Native Header View " src =" assets/Screenshots/ss2.png " width =" 49.7% " height =" 420 " />
24
19
<img alt =" React Native Header View " src =" assets/Screenshots/ss1.png " width =" 49.7% " />
25
20
</p >
26
21
27
-
28
22
## Installation
29
23
30
24
Add the dependency:
@@ -46,7 +40,7 @@ npm i @freakycoder/react-native-header-view
46
40
"react-native-dynamic-vector-icons": ">= x.x.x"
47
41
```
48
42
49
- # Options
43
+ # Options
50
44
51
45
- AppleHeader
52
46
- ModernHeader
@@ -72,13 +66,15 @@ npm i @freakycoder/react-native-header-view
72
66
< ModernHeader
73
67
text= " Profile"
74
68
rightIconType= " Ionicons"
69
+ backgroundColor= " #fdfdfd"
75
70
rightIconName= " ios-settings"
76
71
rightIconColor= {colors .light .primary }
77
- leftIconComponent= {your- icon- component}
78
- rightIconComponent= {your- icon- component}
72
+ leftIconComponent= {your - icon - component}
73
+ rightIconComponent= {your - icon - component}
79
74
leftIconOnPress= {() => NavigationService .back ()}
80
75
/ >
81
76
```
77
+
82
78
## Classic Header Usage
83
79
84
80
#### Basic Usage
@@ -96,20 +92,19 @@ npm i @freakycoder/react-native-header-view
96
92
}
97
93
/ >
98
94
```
95
+
99
96
#### Advanced Custom Usage
100
97
101
98
``` jsx
102
99
< ClassicHeader
103
100
headerTitle= " Header"
104
101
leftComponent= {
105
- < TouchableOpacity
106
- onPress= {() => {}}>
102
+ < TouchableOpacity onPress= {() => {}}>
107
103
< Icon name= " ios-arrow-back" type= " Ionicons" size= {30 } color= " blue" / >
108
104
< / TouchableOpacity>
109
105
}
110
106
rightComponent= {
111
- < TouchableOpacity
112
- onPress= {() => {}}>
107
+ < TouchableOpacity onPress= {() => {}}>
113
108
< Icon name= " github" type= " AntDesign" size= {30 } color= " purple" / >
114
109
< / TouchableOpacity>
115
110
}
@@ -139,31 +134,32 @@ npm i @freakycoder/react-native-header-view
139
134
| containerStyle | style | default style | use this to set your own style for whole container (DO NOT RECOMMENDED!) |
140
135
| avatarStyle | style | default style | use this to set your own style for avatar style (DO NOT FORGET TO ADD BORDER-RADIUS!) |
141
136
142
-
143
137
## Modern Header Props
144
138
145
- | Property | Type | Default | Description |
146
- | ------------------ | :-------: | :------------: | --------------------------------------------------------------- |
147
- | styles | styles | styles | use this to change main style of the header |
148
- | text | string | Header Title | set the header's title |
149
- | textStyle | style | style | set your own style for the header's text |
150
- | left | number | 16 | use this to set left icon's align |
151
- | right | number | 16 | use this to set right icon's align |
152
- | leftIconName | string | ios-arrow-back | change the left icon depends on the React Native Vector Icons |
153
- | leftIconType | string | Ionicons | change the left icon's type |
154
- | leftIconSize | number | 25 | change the left icon's size |
155
- | leftIconColor | color | #bbbabe | change the left icon's color |
156
- | rightIconName | string | heart | change the right icon depends on the React Native Vector Icons |
157
- | rightIconType | string | Entypo | change the right icon's type |
158
- | rightIconSize | number | 25 | change the right icon's size |
159
- | rightIconColor | color | #23c4c1 | change the right icon's color |
160
- | leftIconComponent | component | Icon | use your own component instead of the integrated Icon component |
161
- | rightIconComponent | component | Icon | use your own component instead of the integrated Icon component |
162
- | leftIconOnPress | function | function | set the function for left icon's onPress |
163
- | rightIconOnPress | function | function | set the function for right icon's onPress |
164
- | leftDisable | boolean | false | disable the left icon component |
165
- | rightDisable | boolean | false | disable the right icon component |
166
-
139
+ | Property | Type | Default | Description |
140
+ | ------------------ | :--------------: | :------------: | --------------------------------------------------------------- |
141
+ | height | string OR number | 70 | change the height of the header |
142
+ | width | string OR number | "100%" | change the width of the header |
143
+ | backgroundColor | string | #fff | change the background color of the header |
144
+ | styles | styles | styles | use this to change main style of the header |
145
+ | text | string | Header Title | set the header's title |
146
+ | textStyle | style | style | set your own style for the header's text |
147
+ | left | number | 16 | use this to set left icon's align |
148
+ | right | number | 16 | use this to set right icon's align |
149
+ | leftIconName | string | ios-arrow-back | change the left icon depends on the React Native Vector Icons |
150
+ | leftIconType | string | Ionicons | change the left icon's type |
151
+ | leftIconSize | number | 25 | change the left icon's size |
152
+ | leftIconColor | color | #bbbabe | change the left icon's color |
153
+ | rightIconName | string | heart | change the right icon depends on the React Native Vector Icons |
154
+ | rightIconType | string | Entypo | change the right icon's type |
155
+ | rightIconSize | number | 25 | change the right icon's size |
156
+ | rightIconColor | color | #23c4c1 | change the right icon's color |
157
+ | leftIconComponent | component | Icon | use your own component instead of the integrated Icon component |
158
+ | rightIconComponent | component | Icon | use your own component instead of the integrated Icon component |
159
+ | leftIconOnPress | function | function | set the function for left icon's onPress |
160
+ | rightIconOnPress | function | function | set the function for right icon's onPress |
161
+ | leftDisable | boolean | false | disable the left icon component |
162
+ | rightDisable | boolean | false | disable the right icon component |
167
163
168
164
## Classic Header Props
169
165
@@ -191,19 +187,23 @@ npm i @freakycoder/react-native-header-view
191
187
# Change Log
192
188
193
189
## [ 0.4.11] ( https://github.com/WrathChaos/react-native-header-view/tree/0.4.11 ) (2019-11-13)
190
+
194
191
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.4.10...0.4.11 )
195
192
196
193
## [ 0.4.10] ( https://github.com/WrathChaos/react-native-header-view/tree/0.4.10 ) (2019-11-13)
194
+
197
195
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.4.7...0.4.10 )
198
196
199
197
** Implemented enhancements:**
200
198
201
- - Apple header Bg colour options [ \# 6] ( https://github.com/WrathChaos/react-native-header-view/issues/6 )
199
+ - Apple header Bg colour options [ \# 6] ( https://github.com/WrathChaos/react-native-header-view/issues/6 )
202
200
203
201
## [ 0.4.7] ( https://github.com/WrathChaos/react-native-header-view/tree/0.4.7 ) (2019-10-04)
202
+
204
203
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.4.6...0.4.7 )
205
204
206
205
## [ 0.4.6] ( https://github.com/WrathChaos/react-native-header-view/tree/0.4.6 ) (2019-10-04)
206
+
207
207
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.4.5...0.4.6 )
208
208
209
209
** Closed issues:**
@@ -215,9 +215,11 @@ npm i @freakycoder/react-native-header-view
215
215
- Bump eslint-utils from 1.4.0 to 1.4.2 in /example [ \# 4] ( https://github.com/WrathChaos/react-native-header-view/pull/4 ) ([ dependabot[ bot]] ( https://github.com/apps/dependabot ) )
216
216
217
217
## [ 0.4.5] ( https://github.com/WrathChaos/react-native-header-view/tree/0.4.5 ) (2019-08-17)
218
+
218
219
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.3.0...0.4.5 )
219
220
220
221
## [ 0.3.0] ( https://github.com/WrathChaos/react-native-header-view/tree/0.3.0 ) (2019-08-12)
222
+
221
223
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.61...0.3.0 )
222
224
223
225
** Merged pull requests:**
@@ -227,28 +229,32 @@ npm i @freakycoder/react-native-header-view
227
229
- Bump js-yaml from 3.12.1 to 3.13.1 in /examples [ \# 1] ( https://github.com/WrathChaos/react-native-header-view/pull/1 ) ([ dependabot[ bot]] ( https://github.com/apps/dependabot ) )
228
230
229
231
## [ 0.2.61] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.61 ) (2019-03-19)
232
+
230
233
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.6...0.2.61 )
231
234
232
235
## [ 0.2.6] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.6 ) (2019-03-05)
236
+
233
237
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.5...0.2.6 )
234
238
235
239
## [ 0.2.5] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.5 ) (2019-03-05)
240
+
236
241
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.4...0.2.5 )
237
242
238
243
## [ 0.2.4] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.4 ) (2019-03-05)
244
+
239
245
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.3...0.2.4 )
240
246
241
247
## [ 0.2.3] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.3 ) (2019-03-05)
248
+
242
249
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.2...0.2.3 )
243
250
244
251
## [ 0.2.2] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.2 ) (2019-03-05)
252
+
245
253
[ Full Changelog] ( https://github.com/WrathChaos/react-native-header-view/compare/0.2.0...0.2.2 )
246
254
247
255
## [ 0.2.0] ( https://github.com/WrathChaos/react-native-header-view/tree/0.2.0 ) (2019-02-23)
248
256
249
-
250
- \* * This Change Log was automatically generated by [ github_changelog_generator] ( https://github.com/skywinder/Github-Changelog-Generator ) *
251
-
257
+ \* _ This Change Log was automatically generated by [ github_changelog_generator] ( https://github.com/skywinder/Github-Changelog-Generator ) _
252
258
253
259
## Author
254
260
0 commit comments