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.

support styles on both `DraxList` and its `FlatList`

See original GitHub issue

to have full control over the styles of this component I think it is currently needed to be able to pass styles both to the FlatList and to the DraxList. For example if I want to add padding to inside the FlatList or have effectively flex: 1 it is needed to add styles to both elements.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
chrisdrackettcommented, Jun 17, 2020

agreed, I think the more that can be accessed on the native FlatList the better

0reactions
lafioscacommented, Apr 29, 2021

Merged in #91, new DraxList prop is flatListStyle, and it will be in the 0.8.0 release tonight or tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Structure to drag Items between Lists and Items into other Items
I'm using a DraxList to render a list of DraxViews. ... property of the DraxView to be dragged, it causes the drag style...
Read more >
React-Native Flatlist ignoring styles - Stack Overflow
I'm stuck in why the Flatlist ignores almost every style, like space-around list items and space-around header components and everything.
Read more >
FlatList - React Native
FlatList. A performant interface for rendering basic, flat lists, supporting the most handy features: Fully cross-platform.
Read more >
A deep dive into React Native FlatList - LogRocket Blog
The Item component will accept two props: title and description . This component will display them to the UI; The renderItem function will ......
Read more >
How to use the FlatList Component — React Native Basics
There are two primary props you need to know about in a FlatList and that's data and renderItem. The first is an array...
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