File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,10 +34,35 @@ npm i @freakycoder/react-native-header-view
3434"react-native-dynamic-vector-icons": ">= x.x.x"
3535```
3636
37- ## Basic Usage
37+ # Usage
3838
39- ``` ruby
40- < Header
39+ ## Modern Header Usage
40+
41+ #### Basic Usage
42+
43+
44+
45+ ``` js
46+ < ModernHeader / >
47+ ```
48+
49+ #### Advanced Usage
50+
51+ ``` js
52+ < ModernHeader
53+ text= " Profile"
54+ rightIconType= " Ionicons"
55+ rightIconName= " ios-settings"
56+ rightIconColor= {colors .light .primary }
57+ leftIconOnPress= {() => NavigationService .back ()}
58+ / >
59+ ```
60+ ## Classic Header Usage
61+
62+ #### Basic Usage
63+
64+ ``` js
65+ < ClassicHeader
4166 headerTitle= " Header"
4267 rightComponentDisable
4368 leftComponentOnPress= {() => {}}
@@ -49,12 +74,10 @@ npm i @freakycoder/react-native-header-view
4974 }
5075/ >
5176```
77+ #### Advanced Custom Usage
5278
53-
54- ## Advanced Usage
55-
56- ``` ruby
57- < Header
79+ ``` js
80+ < ClassicHeader
5881 headerTitle= " Header"
5982 leftComponent= {
6083 < TouchableOpacity
@@ -73,6 +96,8 @@ npm i @freakycoder/react-native-header-view
7396
7497### Configuration - Props
7598
99+ #### Classic Header
100+
76101
77102| Property | Type | Default | Description |
78103| --------------------- | :-------: | :--------: | ---------------------------------------------------------------------------- |
@@ -95,10 +120,6 @@ npm i @freakycoder/react-native-header-view
95120| centerComponent | component | Icon | set the center component |
96121| centerComponentStyle | style | style | set the center component's style |
97122
98- # Change Log
99-
100- ## [ 0.2.0] ( https://github.com/wrathchaos/react-native-header-view/tree/0.2.0 ) (2019-02-23)
101-
102123
103124## Author
104125
You can’t perform that action at this time.
0 commit comments