Skip to content

Commit fd06c90

Browse files
committed
added clipHeader prop
1 parent 45f43ea commit fd06c90

File tree

8 files changed

+440
-14
lines changed

8 files changed

+440
-14
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,6 @@ typings/
7272
# Serverless directories
7373
.serverless
7474

75-
dist
75+
dist
76+
77+
.ionide

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ hood.
5959
status bar container. Defaults to `'white'`;
6060
- `disableHeaderSnap?: boolean` - pass `true` to disable header snap animations. Defaults to `false`;
6161
- `headerAnimationDuration?: number` - duration of snap and `showHeader`, `hideHeader` animations.
62-
Defaults to `350`.
62+
Defaults to `350`;
63+
- `clipHeader?: boolean` - if `true` header will be clipped with `overflow: 'hidden'` style.
6364

6465
Also some of `ScrollView` props have new defaults: `bounces` defaults to `false`, `overScrollMode`
6566
to `'never'` and `scrollEventThrottle` to `1`.
@@ -72,7 +73,7 @@ to `'never'` and `scrollEventThrottle` to `1`.
7273
opacity etc.;
7374
- `showHeader: (options: { animated: boolean } | unknown) => void` - pushes header down with animation
7475
enabled by default;
75-
- `hideHeader: (options: { animated: boolean } | unknown) => void` - pulls header up with animation
76+
- `hideHeader: (options: { animated: boolean } | unknown) => void` - pulls header up with animation
7677
enabled by default.
7778

7879
### Methods
@@ -83,7 +84,7 @@ to `'never'` and `scrollEventThrottle` to `1`.
8384
to original component;
8485
- `showHeader: (options: { animated: boolean } | unknown) => void` - pushes header down with animation
8586
enabled by default;
86-
- `hideHeader: (options: { animated: boolean } | unknown) => void` - pulls header up with animation
87+
- `hideHeader: (options: { animated: boolean } | unknown) => void` - pulls header up with animation
8788
enabled by default.
8889

8990
#### withCollapsibleHeader

fable-typed/src/Fable.Import.ReactNativeCollapsibleHeaderViews.fs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Props =
1212

1313
type AnimationConfig =
1414
{ animated: bool }
15-
15+
1616
type CollapsibleHeaderProps =
1717
{ interpolatedHeaderTranslation: (float -> float -> Animated.AnimatedInterpolation)
1818
showHeader: (AnimationConfig -> unit)
@@ -32,6 +32,7 @@ module Props =
3232
| HeaderContainerBackgroundColor of string
3333
| DisableHeaderSnap of bool
3434
| HeaderAnimationDuration of float
35+
| ClipHeader of bool
3536
| Ref of Ref<CollapsibleHeaderView>
3637

3738

0 commit comments

Comments
 (0)