question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TriggeringView doesn't trigger callback function while scrolling

See original GitHub issue

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>

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:17

github_iconTop GitHub Comments

7reactions
jiabinxiongcommented, Dec 27, 2020

+1

back 0.10.3

3reactions
mir1198yusufcommented, Feb 6, 2021

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Trigger callback function when section comes into viewport ...
The problem I cant figure out is how to determine when the sections below and above the horizontal scrolling sections actually enter and...
Read more >
callback function for `scroll` event doesn't get covered by ...
You bind the scroll event on the window object, NOT the component wrapper. You can mock the window.addEventListener() method and trigger it ...
Read more >
Image Header Scroll View for React Native - Morioh
The component is render in front of the header and scroll with the ScrollView. ... It accept callback called when it disappear or...
Read more >
Callbacks - ScrollTrigger
<li><code>onUpdate</code> - every time the scroll position changes while ... onEnterBack - backward past "end" (typically when trigger is scrolled back into ...
Read more >
自己修改的两个js文件 - 贫民窟里的程序高手
If `callback` is undefined, remove all callbacks for the // event. ... and fire onload when all done Module.prototype.load = function() { var...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found