Skip to content

Commit 82b5ced

Browse files
committed
Remove flex style from Stack and Button
1 parent 731daa9 commit 82b5ced

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

example/src/App.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const styles = StyleSheet.create( {
2121
flex: 1,
2222
alignItems: 'flex-start',
2323
justifyContent: 'flex-start',
24-
marginHorizontal: 16
24+
width: '100%'
2525
},
2626
scroll: {
2727
flexGrow: 1,
@@ -102,8 +102,8 @@ export default function App() {
102102
return (
103103
<ThemeProvider theme={customTheme}>
104104
<SafeAreaView style={styles.container}>
105-
<ScrollView contentContainerStyle={styles.scroll}>
106-
<VStack>
105+
<ScrollView contentContainerStyle={styles.scroll} style={{ width: '100%' }}>
106+
<VStack marginX="3">
107107
<PaletteColorGrid />
108108
<TextExamples />
109109
<BoxExamples />

src/components/main/Stack/Stack.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ const Stack = ( {
2424

2525
return (
2626
<Box
27-
flex={1}
2827
alignContent='stretch'
2928
{...restProps}
3029
flexDirection={flexDirection}

src/core/theme/defaultTheme/components/Button.ts

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
export default {
22
defaultProps: {
3-
flex: 1,
43
bg: 'white',
54
borderColor: 'black',
65
borderWidth: '2',

0 commit comments

Comments
 (0)