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.

Component not rendering at all

See original GitHub issue

The following code is not rendering anything at all

<DraggableFlatList data={['a', 'b', 'c']} renderItem={({ item }) => ( <Text>{item}</Text> )} keyExtractor={item => item} scrollPercent={5} />

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
nirmaldalmiacommented, May 31, 2020

I am facing the same issue. Everything renders fine when I use FlatList but the moment I replace FlatList with DraggableFlatList, it shows a blank screen. Even tried setting the height as mentioned by @cjinghong but no use.

0reactions
ShavaShavcommented, Aug 15, 2021

I think if DraggableFlatList is wrapped in a View, that View needs specific dimensions (height/width) or flex:1 in it’s style. At least that’s what worked for me when nothing rendered.

Read more comments on GitHub >

github_iconTop Results From Across the Web

REACT – Simple Intro Component Not Rendering?
Once you get a hang of it, you can break up your application into reusable components and include them all over your project....
Read more >
Simple React component not rendering - Stack Overflow
Make sure that Map is correctly defined in the context of your App::render method. Also, be aware that in ES6, Map is a...
Read more >
react component is not rendering - You.com | The AI Search ...
My error was setting the root component of the app (App.js) to the entry point of the App (index.js). Once that was mistake...
Read more >
When does React render your component? - Zhenghao
Your component has been rendered before i.e. it already mounted · No props (referentially) changed · No any context value consumed by your ......
Read more >
App.js not rendering components, help! : r/reactjs - Reddit
js not rendering components, help! Hey guys, I recently started a React (v17) project, added some components to it, but for some reason,...
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