Component not rendering at all
See original GitHub issueIssue Description
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:
- Created 4 years ago
- Comments:5
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
I think if
DraggableFlatList
is wrapped in aView
, thatView
needs specific dimensions (height
/width
) orflex:1
in it’s style. At least that’s what worked for me when nothing rendered.