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
@@ -60,9 +62,29 @@ The `HeaderImageScrollView` handle also the following props. None is required :
60
62
| Property | Type | Default | Description |
61
63
| -------- | ---- | ------- | ----------- |
62
64
|`renderForeground`|`function`| Empty view | Function which return the component to use at foreground. The component is render in front of the header and scroll with the ScrollView. It can return a title for example.|
65
+
|`renderFixedForeground`|`function`| Empty view | Function which return the component to use as fixed foreground. The component is displayed with the header but not affected by the overlay. Perfect for navbar content.|
63
66
|`foregroundParallaxRatio`|`number`|`1`| Ration for parallax effect of foreground when scrolling. If 2, the header goes up two times faster than the scroll |
64
67
|`fadeOutForeground`|`bool`|`false`| If set, add a fade out effect on the foreground when scroll up |
65
68
69
+
70
+
### TriggeringView
71
+
72
+
The module also export a TriggeringView component. It is a simple view witch accept callback called when it disappear
73
+
or appear at the top of the ImageHeaderScrollView
74
+
75
+
All of the properties of `View` are supported.
76
+
77
+
78
+
| Property | Type | Description |
79
+
| -------- | ---- | ----------- |
80
+
|`onBeginHidden`|`function`| Called when the component start to be hidden at the top of the scroll view. |
81
+
|`onHide`|`function`| Called when the component is not displayed any more after scroll up |
82
+
|`onBeginDisplayed`|`function`| Called when the component begin to be displayed again after scroll down |
83
+
|`onDisplay`|`function`| Called when the component finished to be displayed again. |
84
+
|`onTouchTop`|`function`| Called when the Top of the component touch the Top of the ScrollView. (`onDisplay` + `onBeginHidden`) |
85
+
|`onTouchBottom`|`function`| Called when the Bottom of the component touch the Top of the ScrollView. (`onHide` + `onBeginDisplayed`) |
86
+
87
+
66
88
## Other open-source modules by the folks at [BAM](http://github.com/bamlab)
0 commit comments