Skip to content

Commit 224e37e

Browse files
author
Sibusiso Massango
committed
updating default style for button container so the next button will be on the right by default
1 parent e346e7b commit 224e37e

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ export default function App() {
7777
return (
7878
<View style={styles.container}>
7979
<MultiSteps
80+
containerButtonStyle={styles.containerButtonStyle}
8081
onMoveNext={function (data: any): void { console.log("next", data) }}
8182
onMovePrevious={function (data: any): void { console.log("previous", data) }}
8283
onSubmit={function () { console.log('Submit') }}>
@@ -137,7 +138,13 @@ const styles = StyleSheet.create({
137138
justifyContent: 'center',
138139
margin: 20,
139140
},
140-
141+
containerButtonStyle:{
142+
display: 'flex',
143+
flexDirection: 'row',
144+
justifyContent: 'flex-end',
145+
paddingLeft: 10,
146+
paddingRight: 30,
147+
}
141148
});
142149

143150
```

src/index.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,11 @@ const styles = StyleSheet.create({
170170
marginVertical: 8,
171171
},
172172
fixToText: {
173+
display: 'flex',
173174
flexDirection: 'row',
174-
justifyContent: 'space-between',
175+
justifyContent: 'flex-end',
176+
paddingLeft: 10,
177+
paddingRight: 30,
175178
},
176179
styleBtn: {
177180
alignItems: 'center',

0 commit comments

Comments
 (0)