Skip to content

Commit 1bb8d66

Browse files
committed
remove wrapping View, fix static pill container styles overriding custom styles
1 parent 189f3cc commit 1bb8d66

File tree

1 file changed

+7
-12
lines changed

1 file changed

+7
-12
lines changed

components/Swiper.js

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,17 +59,12 @@ export default function Swiper({style, data, isStaticPills, ...rest}) {
5959
const onPillPress = index => () => flatList.current?.scrollToIndex({index});
6060

6161
return (
62-
<View
63-
style={{
64-
flex:1
65-
}}
66-
>
67-
<View
68-
style={[
69-
styles.pillContainer,
70-
style?.pillContainer,
71-
isStaticPills && styles.staticPillContainer,
72-
]}>
62+
<>
63+
<View style={[
64+
styles.pillContainer,
65+
isStaticPills && styles.staticPillContainer,
66+
style?.pillContainer,
67+
]}>
7368
{!!isStaticPills && (
7469
<StaticPills
7570
data={data}
@@ -125,7 +120,7 @@ export default function Swiper({style, data, isStaticPills, ...rest}) {
125120
style={styles.flatList}
126121
{...rest}
127122
/>
128-
</View>
123+
</>
129124
);
130125
};
131126

0 commit comments

Comments
 (0)