-
Notifications
You must be signed in to change notification settings - Fork 1.8k
ListView implementation #260
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
Comments
@necolas, do you have any details on the experimental ListView in RN? On a quick search I wasn't able to find any references to this, and would be interested to find out more, we're currently looking at options for a RN and RNW shared ListView component. |
It's called |
New listview is very much faster, nice 👍 |
@mkdotcom I've done a quick bit of testing, and applying Anyway - hopefully that helps a little, here's a pen with the fix applied: |
@gethinwebster nice, thanks ! |
Is |
Also, getting this error/warning while using
Using |
@MarkMurphy the ListView implementation is the same as the core React Native one - |
@gethinwebster That doesn't seem to be the case. It seems no matter what I try, all rows are rendered to the DOM. Here's the code I'm trying this with: https://gist.github.com/MarkMurphy/310e7801b497381854b6ea713eb4e42f |
@MarkMurphy If you move the fixed height to the ListView itself, then this should work as expected - it doesn't try to look up the view tree to see how much space is available, but relies on the ListView component itself (which has built-in scrolling capability) having a constrained height. |
The docs for listview seem to be kind of lacking |
Still didn't work for me but then I discovered that not using |
ListView isn't backed by a scroll view recycler, so it's going to render rows even if they are off screen.
Please can you create a reduced test case and create an issue? |
Just to reiterate on the other issue I was having, the class ContactList extends Component {
// ...
renderScrollComponent = (props = {}) => {
const scrollViewProps = {}
for (let prop in ScrollView.propTypes) {
if (props.hasOwnProperty(prop)) {
scrollViewProps[prop] = props[prop]
}
}
return <ScrollView {...scrollViewProps} />
}
render() {
return (
<ListView
dataSource={this.state.dataSource}
renderScrollComponent={this.renderScrollComponent}
// ...
/>
)
}
} |
Yeah good call, I've noticed this issue in the storybook example too. |
Closing this as no one is working on ListView and RN has replacements #388 |
Catch-all issue for
ListView
. Leave comments here if you want to report issues or have PRs that improve it.What is the current behavior?
ListView
is partially implemented and missing many features. It has been reported that this component has performance issues on native platforms, making it unlikely that the core of the RN implementation will perform well on web. I'm not actively working onListView
, nor do I plan to work on it given that it doesn't currently help us solve our problems on Web.There's also an experimental
ListView
replacement being built within RN, much like the replacement forNavigator
.The text was updated successfully, but these errors were encountered: