Skip to content

Commit 0199cbd

Browse files
djkmilesalvaromb
authored andcommitted
Add support for KeyboardAwareSectionView/SectionView (APSL#228)
* Add sectionList support * Add KeyboardAwareSectionView/SectionView
1 parent 069b2ad commit 0199cbd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ yarn add react-native-keyboard-aware-scroll-view
3131
```
3232

3333
## Usage
34-
You can use the `KeyboardAwareScrollView`, the `KeyboardAwareListView` or the `KeyboardAwareFlatList`
35-
components. They accept `ScrollView`, `ListView` and `FlatList` default props respectively and
34+
You can use the `KeyboardAwareScrollView`, the `KeyboardAwareListView`, `KeyboardAwareSectionView` or the `KeyboardAwareFlatList`
35+
components. They accept `ScrollView`, `ListView`, `SectionView` and `FlatList` default props respectively and
3636
implement a custom high order componente called `KeyboardAwareHOC` to handle keyboard appearance.
3737
The high order component is also available if you want to use it in any other component.
3838

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import listenToKeyboardEvents from './lib/KeyboardAwareHOC'
44
import KeyboardAwareScrollView from './lib/KeyboardAwareScrollView'
55
import KeyboardAwareListView from './lib/KeyboardAwareListView'
66
import KeyboardAwareFlatList from './lib/KeyboardAwareFlatList'
7+
import KeyboardAwareSectionList from './lib/KeyboardAwareSectionList'
78

89
export {
910
listenToKeyboardEvents,
1011
KeyboardAwareListView,
1112
KeyboardAwareFlatList,
13+
KeyboardAwareSectionList,
1214
KeyboardAwareScrollView
1315
}

lib/KeyboardAwareSectionList.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* @flow */
2+
3+
import { SectionList } from 'react-native'
4+
import listenToKeyboardEvents from './KeyboardAwareHOC'
5+
6+
export default listenToKeyboardEvents(SectionList)

0 commit comments

Comments
 (0)