Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recyclerlistview in middle of the page make scroll to only the listview not for full page #81

Closed
thamizh82 opened this issue Nov 27, 2017 · 5 comments

Comments

@thamizh82
Copy link

I am using Recyclerlistview for my page, which is having first half with other functionality for site.
Then am using Recyclerlistview for data to render.

After integration the page scroll happens only to Recyclerlistview itself. And only 10% of Recyclerlistview are visible.

How to make my entire page to scroll to view my full Recyclerlistview.
flipkattest

@thamizh82
Copy link
Author

Team,

Kindly reply soon pls....

@naqvitalha
Copy link
Collaborator

This looks like something from Android's Coordinator layout domain. There is no direct solution to achieve this right now since nested scrolling is a mess in react native. We'll need to build something similar to coordinator layout.

Check out the following links:
https://github.com/mohtada-h/react-native-nested-scrollview
facebook/react-native#8024

Let us know if you find anything. It'll help everyone.

@naqvitalha
Copy link
Collaborator

Inactive for a while, closing.

@thamizh82
Copy link
Author

I solved this issue by appending dummy header content to the result data.
e.g
var headerData = [{ 'headerData': 'dummytext' }];
var outputData = headerData .concat(resultsetData);

In Recyclerview
rowRenderer=this._renderRow;

_renderRow(type, data) {
if (data.headerData == 'dummytext') {
return (Your header content)
}
return return (Your real data)
}

@JhowEMK
Copy link

JhowEMK commented May 17, 2019

any news ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants