`onEndReached`没有触发动画ScrollView

Gui*_*sch 6 android ios reactjs react-native react-animated

我目前正在尝试在我的react-native应用程序上实现自动隐藏标头.感谢这个例子,我设法做到了,但它破坏了一些东西.事实上onEndReached,当我到达列表末尾时,我的方法不再被调用.我也使用该RefreshControl组件来实现一个pull-to-refresh有效但这AnimatedScrollView似乎干扰了经典的ListView功能.

我创建了一个AnimatedScrollView这样的组件:

const AnimatedScrollView = Animated.createAnimatedComponent(ScrollView);
Run Code Online (Sandbox Code Playgroud)

这是我的组件的渲染:

<View>
  <AnimatedScrollView
    ...someProps
  >
    <ListView
        ...someOtherProps
    />
  </AnimatedScrollView>
  <Animated.View>
    <Text>My Header Title</Text>
  </Animated.View>
</View>
Run Code Online (Sandbox Code Playgroud)

正如我所说的那样,我很确定AnimatedScrollView滚动功能会覆盖它们ListView,但我不知道如何解决这个问题......

如果你们有一个提示/知道一个解决方法,或者甚至知道一个可以帮助我标题的库,我将不胜感激:)

对于那些现在想要表达的东西someProps,它们与我链接的示例完全相同.

谢谢