You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Change title to accept string/component
- Added `alwaysShowTitle` & `alwaysShowNavBar` property
- Added status bar to display same color as navBarColor
- Change default `extraScrollHeight` to 30
- Change default `headerMaxHeight` to 170
|`renderNavBar`|`func`| No | This renders the nav bar component | Empty `<View />`|
109
104
|`renderContent`|`func`|**YES**| This renders the scroll view content | - |
110
-
|`headerMaxHeight`|`number`| No | This is the header maximum height | Default to `200`|
105
+
|`headerMaxHeight`|`number`| No | This is the header maximum height | Default to `170`|
111
106
|`headerMinHeight`|`number`| No | This is the header minimum height | Default to common ios & android navbar height (have support for iPhone X too :p) |
112
107
|`backgroundImage`|`image source`| No | This renders the background image of the header (**if specified, background color will not take effect**) | Default is `null`|
113
108
|`backgroundImageScale`|`number`| No | This is the image scale - either enlarge or shrink (after scrolling to bottom & exceed the headerMaxHeight) | Default is `1.5`|
114
109
|`backgroundColor`|`string`| No | This is the color of the parallax background (before scrolling up), **will not be used if `backgroundImage` is specified**| Default color is `#303F9F`|
115
-
|`extraScrollHeight`|`number`| No | This is the extra scroll height (after scrolling to bottom & exceed the headerMaxHeight) | Default is `50`|
110
+
|`extraScrollHeight`|`number`| No | This is the extra scroll height (after scrolling to bottom & exceed the headerMaxHeight) | Default is `30`|
116
111
|`navbarColor`|`string`| No | This is the background color of the navbar (after scroll up) | Default color is `#3498db`|
117
-
|`title`|`string`| No | This is the title to be display in the header| Default is empty string `‘’`|
112
+
|`title`|`any`| No | This is the title to be display in the header, can be string or component | Default to null|
118
113
|`titleStyle`|`style`| No | This is the title style to override default font size/color | Default to `color: ‘white’ `text and `fontSize: 16`|
119
114
|`scrollEventThrottle`|`number`| No | This is the scroll event throttle | Default is `16`|
120
115
|`contentContainerStyle`|`style`| No | This is the contentContainerStyle style to override default `<ScrollView>` contentContainerStyle style | Default to null |
121
116
|`contentStyle`|`style`| No | This is the inner content style to override default `<View>` style inside `<ScrollView>` component | Default to null |
117
+
|`alwaysShowTitle`|`bool`| No | This is to determine whether show or hide the title after scroll | Default to `true`|
118
+
|`alwaysShowNavBar`|`bool`| No | This is to determine whether show or hide the navBar before scroll | Default to `true`|
0 commit comments