Skip to content

Commit f71e068

Browse files
committed
Fix flow typing
1 parent 00b513f commit f71e068

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,8 @@ The `HeaderImageScrollView` handle also the following props. None is required :
6161
| `maxOverlayOpacity` | `number` | `0.3` | Opacity of a black overlay on the header when in navbar mode | [example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/3b9d2d0d7f71c6bf877e2d10cc65c9ab7e1b484d/src/Pages/TvShow.js#L96) |
6262
| `overlayColor` | `string` | `black` | Color of the overlay on the header | [example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/master/src/Pages/Colors.js#L16) |
6363
| `useNativeDriver` | `boolean` | `false` | Use native driver for the animation for performance improvement. A few props are unsupported at the moment if `useNativeDriver=true` (`onScroll`, `ScrollComponent`, `renderTouchableFixedForeground`) | - |
64-
|`headerContainerStyle`|`Object`|`undefined`|Optional styles to be passed to the container of the header component|
65-
|`disableHeaderGrow`|`boolean`|`undefined`|Disable to grow effect on the header|
64+
|`headerContainerStyle`|`Object`|`undefined`| Optional styles to be passed to the container of the header component|
65+
|`disableHeaderGrow`|`boolean`|`undefined`| Disable to grow effect on the header|
6666

6767
### Foreground
6868

@@ -73,6 +73,7 @@ The `HeaderImageScrollView` handle also the following props. None is required :
7373
| `foregroundParallaxRatio` | `number` | `1` | Ration for parallax effect of foreground when scrolling. If 2, the header goes up two times faster than the scroll | [example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/master/src/Pages/Colors.js#L23) |
7474
| `fadeOutForeground` | `bool` | `false` | If set, add a fade out effect on the foreground when scroll up | [example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/master/src/Pages/Colors.js#L13) |
7575
| `renderTouchableFixedForeground` | `function` | Empty view | Same as `renderFixedForeground` but allow to use touchable in it. [*Can cause performances issues on Android*](https://github.com/bamlab/react-native-image-header-scroll-view/issues/6)| [example](https://github.com/bamlab/react-native-image-header-scroll-view-example/blob/master/src/Pages/PullToRefresh.js#L45) |
76+
|`fixedForegroundContainerStyles`|`Object`|`undefined`| Optional styles to be passed to the container of the fixed foreground component|
7677

7778
### Mixed
7879

src/ImageHeaderScrollView.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ export type Props = ScrollViewProps & {
4444
headerImage?: ?SourceProps,
4545
useNativeDriver: ?boolean,
4646
headerContainerStyle?: ?Object,
47+
fixedForegroundContainerStyles?: ?Object,
4748
disableHeaderGrow?: ?boolean,
4849
};
4950

src/TriggeringView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ type State = {
3434

3535
type Context = {
3636
scrollPageY?: number,
37-
scrollY: typeof Animated.Value,
37+
scrollY: Animated.Value,
3838
};
3939

4040
class TriggeringView extends Component<Props, State> {

0 commit comments

Comments
 (0)