Comments (5)
Would be too hard to give the lib consumer a prop so he would choose to make renderHeader
a part or not, of the recycle list content? In my case the renderHeader is a bit heavier than normal, that could be the same situation for others.
In FlatList for example the only way is using their renderHeader alternative to have FlatList in a screen, otherwise would need to wrap all in a ScrollView, and that make FlatList pointless.
from react-native-big-list.
contentContainerStyle
is also affectingrenderHeader
, would be the same thing as just wrapping BigList in a View. So, it's not working only in the content.
Yes, it's normal isn't a bug. Anyway send your mockup about your expectation.
Would be too hard to give the lib consumer a prop so he would choose to make
renderHeader
a part or not, of the recycle list content? In my case the renderHeader is a bit heavier than normal, that could be the same situation for others.In FlatList for example the only way is using their renderHeader alternative to have FlatList in a screen, otherwise would need to wrap all in a ScrollView, and that make FlatList pointless.
Maybe could be possibile only for Header and Footer. I need to try it and after I'll give you a feedback about it.
from react-native-big-list.
I mean, would be cool to have separate styling option as props, one for the renderHeader
and another for the renderItem
list which already is the contentContainerStyle
. I think that's how FlatList work.
In FlatList contentContainerStyle
does not affect header nor footer.
https://reactnative.dev/docs/flatlist#listheadercomponentstyle
It also has a separate style obj for the footer. https://reactnative.dev/docs/flatlist#listfootercomponentstyle
from react-native-big-list.
I mean, would be cool to have separate styling option as props, one for the
renderHeader
and another for therenderItem
list which already is thecontentContainerStyle
. I think that's how FlatList work.In FlatList
contentContainerStyle
does not affect header nor footer.https://reactnative.dev/docs/flatlist#listheadercomponentstyle
It also has a separate style obj for the footer. https://reactnative.dev/docs/flatlist#listfootercomponentstyle
I add a static header and footer, so they shouldn't be re-rendered. Released on 1.3.8
.
About ListFooterComponentStyle
and ListHeaderComponentStyle
already exists if you use ListHeaderComponent
or ListFooterComponent
but they are not really needed because your children can be styled with flex: 1
to nullify the parent and the width
and height
can't be changed (for calculate the height of the view using processor) and they are available only for compatibility. columnWrapperStyle
can be implemented but, as for ListFooterComponentStyle
, I must to overwrite height and width so its only for compatibility.
from react-native-big-list.
Nice, thanks.
from react-native-big-list.
Related Issues (20)
- onViewableItemsChanged called 2 times HOT 3
- Layout trouble with images/videos HOT 1
- Blank items on fast scroll HOT 2
- initialScrollIndex parameter has no effect
- issue with ScrollViewComponent prop
- BigList Crashes With the placeholder prop set to true HOT 2
- Warning about potential memory leak when placeholder is true
- Why do getItemLayout arguments always ([],0) is this intended?
- [Question] Scrolling two big lists synchronously?
- horizontal={true} not working HOT 1
- FEATURE REQUEST: Render Empty Section Headers boolean prop
- updating state in component
- numColumns not working in sections list HOT 1
- dynamic item height issue HOT 4
- numColumns Not working V1.6.1 HOT 2
- onScrollEndDrag and onScrollBeginDrag not working
- License update request
- Add refreshcontrol error
- renderSectionHeader doubles up on styles HOT 1
- No ItemSeparatorComponent?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-big-list.