Skip to content

Commit

Permalink
chore: add contentContainerStyle prop
Browse files Browse the repository at this point in the history
  • Loading branch information
azimgd committed Nov 26, 2024
1 parent 333b72b commit 7add7ba
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1497,7 +1497,7 @@ PODS:
- React-logger (= 0.75.4)
- React-perflogger (= 0.75.4)
- React-utils (= 0.75.4)
- shadowlist (0.4.7):
- shadowlist (0.4.8):
- DoubleConversion
- glog
- hermes-engine
Expand Down Expand Up @@ -1783,7 +1783,7 @@ SPEC CHECKSUMS:
React-utils: cbe8b8b3d7b2ac282e018e46f0e7b25cdc87c5a0
ReactCodegen: 4bcb34e6b5ebf6eef5cee34f55aa39991ea1c1f1
ReactCommon: 6a952e50c2a4b694731d7682aaa6c79bc156e4ad
shadowlist: 61975db3e11eed4f37c4e8a67921331206488f7f
shadowlist: c2e677246b45061b8b2c2982f26d728c7d1f5390
SocketRocket: abac6f5de4d4d62d24e11868d7a2f427e0ef940d
Yoga: 055f92ad73f8c8600a93f0e25ac0b2344c3b07e6

Expand Down
6 changes: 5 additions & 1 deletion src/Shadowlist.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,11 @@ export const Shadowlist = React.forwardRef(
}, [props.data, props.renderItem, props.keyExtractor]);

return (
<SLContainer style={props.style} ref={ref} {...props}>
<SLContainer
{...props}
ref={ref}
style={[props.style, props.contentContainerStyle]}
>
{!props.inverted ? ListHeaderComponent : ListFooterComponent}
{props.data.length ? ListChildrenComponent : ListEmptyComponent}
{!props.inverted ? ListFooterComponent : ListHeaderComponent}
Expand Down

0 comments on commit 7add7ba

Please sign in to comment.