React-native-keyboard-aware-scroll-view: Support for sticky headers

Created on 26 Jun 2018  路  14Comments  路  Source: APSL/react-native-keyboard-aware-scroll-view

Whenever I'm trying to use KeyboardAwareScrollViewwith stickyHeaderIndicesor KeyboardAwareSectionListwith stickySectionHeadersEnabled, I get the following error:

couldn't find key offset in dynamic object

  • getDouble (ReadableNativeMap.java)

  • init (ValueAnimatedNode.java:31)

  • createAnimatedNode (NativeAnimatedNodesManager.java:91)

  • execute (NativeAnimatedModule.java:204)

  • ...

Everything works as expected with React Native's SectionList and ScrollView. Am I missing something or is it currently not possible to use sticky headers with this library?

Most helpful comment

I had the same issue. As I read in the documentation of react-native-keyboard-aware-scroll-view:

First, Android natively has this feature, you can easily enable it by setting windowSoftInputMode in AndroidManifest.xml. Check here.

Since I did not use features such as extraHeight, I used KeyboardAwareSectionList on iOS only and simply imported SectionList on Android.

All 14 comments

+1

Update. This happens on Android only

+1

+1

Same issue

I had the same issue. As I read in the documentation of react-native-keyboard-aware-scroll-view:

First, Android natively has this feature, you can easily enable it by setting windowSoftInputMode in AndroidManifest.xml. Check here.

Since I did not use features such as extraHeight, I used KeyboardAwareSectionList on iOS only and simply imported SectionList on Android.

+1

+1

+1

Silently failing on iOS for me - trying to get a header/footer that remains on top of the keyboard despite the scroll, while maintaining "scroll to input" ability.

+1

give up

give up

Can confirm this solution worked for me

+1

Was this page helpful?
0 / 5 - 0 ratings