react-native-image-header-scroll-view: TriggeringView doesn't trigger callback function while scrolling

I tried to implement it on Android. But it doesn’t trigger the callback function. Here is the code:

<View>
     <TriggeringView
            onHide={() => alert("hide")}
            onDisplay={() => alert("show")}>
               <Text>Hello World</Text>
      </TriggeringView>
</View>

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 9
  • Comments: 18

Most upvoted comments

+1

back 0.10.3

By 0.10.3 , imports will be changed as follows : import ImageHeaderScrollView, {TriggeringView } from 'react-native-image-header-scroll-view';

@mir1198yusuf Thanks for your reply. Even this version is just calling onBeginHidden and onDisplay, it doesn’t call onBeginDisplayed, onHide. But made it work by doing slight editions to TriggeringView.js

I don’t think it will be fixed soon, better downgrade and continue

This is the correct answer https://github.com/bamlab/react-native-image-header-scroll-view/issues/92#issuecomment-751445561

I changed in package.json "react-native-image-header-scroll-view": "^0.10.3"