Skip to content

Commit a2fad4e

Browse files
committed
fix(container): remove stickyHeader prop
1 parent d443c4a commit a2fad4e

File tree

2 files changed

+0
-16
lines changed

2 files changed

+0
-16
lines changed

README.md

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ In addition to the regular `ScrollView`, `FlatList` or `SectionList` props, you
3838

3939
### Props
4040

41-
- [`stickyHeader`](#stickyHeader)
4241
- [`stickyFooter`](#stickyFooter)
4342
- [`containerStyle`](#containerStyle)
4443

@@ -48,16 +47,6 @@ In addition to the regular `ScrollView`, `FlatList` or `SectionList` props, you
4847

4948
## Props
5049

51-
### `stickyHeader`
52-
53-
Used to display a persisted view above the scrollable content.
54-
55-
| Type | Required |
56-
| ----------------- | -------- |
57-
| `React.ReactNode` | No |
58-
59-
---
60-
6150
### `stickyFooter`
6251

6352
Used to display a persisted view under the scrollable content. Sticky footer is always shown above the keyboard, which could be the desired behaviour for a submit button.

src/KeyboardAvoidingContainer.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ const {height: SCREEN_HEIGHT} = Dimensions.get('window');
2929
const KEYBOARD_PADDING = 48;
3030

3131
export interface ExternalKeyboardAvoidingContainerProps {
32-
stickyHeader?: React.ReactNode;
3332
stickyFooter?: React.ReactNode;
3433
containerStyle?: StyleProp<ViewStyle>;
3534
}
@@ -50,7 +49,6 @@ export interface KeyboardAvoidingContainerProps<
5049

5150
export const KeyboardAvoidingContainer = genericMemo(
5251
<TScrollViewProps extends ScrollViewProps>({
53-
stickyHeader,
5452
stickyFooter,
5553
containerStyle,
5654
ScrollViewComponent,
@@ -61,7 +59,6 @@ export const KeyboardAvoidingContainer = genericMemo(
6159
}: KeyboardAvoidingContainerProps<TScrollViewProps>) => {
6260
return (
6361
<SafeAreaView style={[styles.container, containerStyle]}>
64-
{stickyHeader}
6562
<ScrollViewComponent ref={scrollViewRef} {...scrollViewProps} />
6663
{stickyFooter && (
6764
<View ref={stickyFooterRef} {...stickyFooterProps}>
@@ -76,7 +73,6 @@ export const KeyboardAvoidingContainer = genericMemo(
7673
export function useKeyboardAvoidingContainerProps<
7774
TScrollViewProps extends ScrollViewProps
7875
>({
79-
stickyHeader,
8076
stickyFooter,
8177
containerStyle,
8278

@@ -397,7 +393,6 @@ export function useKeyboardAvoidingContainerProps<
397393
);
398394

399395
return {
400-
stickyHeader,
401396
stickyFooter,
402397
containerStyle,
403398
scrollViewProps,

0 commit comments

Comments
 (0)