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.

Bug: `onScroll` on `List` not get called

See original GitHub issue

react-native, react and native-base version: 0.48.3 native-base version: 2.3.6

Expected behaviour: onScroll event should get fired

Actual behaviour: onScroll event does not get fired

Steps to reproduce (the following is inside Container and Content):

<List
      onScroll = { this._onScroll.bind(this) }
      dataArray = { this.props.lastSheet.workDays }
      renderHeader = { this._headerItem.bind(this) }
      renderRow = {( item: TimeLogModel, _sectionId: number, rowId: string ) =>
           { return (<MetaTimeEntryCell
                                data = { item }
                                rowId = { rowId }
                                onItemPress = { this._onItemPress.bind(this) } />
                              )
  } />

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
akhil-gacommented, Jan 15, 2018

@oferRounds NativeBase<Content> itself is a ScrollView (you can read about <Content/> here). So a Scrollview inside Content component behaves the same way as a ScrollView inside a ScrollView.

0reactions
oferRoundscommented, Jan 16, 2018

@akhil-geekyants got you, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Is This "OnScroll" JavaScript Function Not Being Called?
But, when the page is being scrolled up, the navigation bar should appear (or margin-top: 0 ). I don't understand why this function...
Read more >
[BUG] content area scroll does not work correctly after data is ...
The content area can not scroll to the bottom of the list. ... This is due to setOverflowHeight() being called on the keyboard...
Read more >
File List Doesn't Scroll Properly in Tree View | Sourcetree For ...
When in Tree View, the file list scroll position does not move in proportion to the number of files displayed. It is difficult...
Read more >
Document: scroll event - Web APIs - MDN Web Docs - Mozilla
The scroll event fires when the document view has been scrolled. To detect when scrolling has completed, see the Document: scrollend event.
Read more >
onscroll Event - W3Schools
The onscroll event occurs when an element's scrollbar is being scrolled. Tip: use the CSS overflow style property to create a scrollbar for...
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