Skip to content

Commit 2f5860c

Browse files
author
Sibusiso Massango
committed
2 parents 8247636 + 59da609 commit 2f5860c

File tree

1 file changed

+25
-5
lines changed

1 file changed

+25
-5
lines changed

src/index.tsx

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function RNMultiStep(props: any): any {
104104
>
105105
{canMove.canMovePrevious && (
106106
<TouchableOpacity
107-
style={props.buttonStyle ? props.buttonStyle : styles.styleBtn}
107+
style={props.prevButtonStyle ? props.prevButtonStyle : styles.prevStyleBtn}
108108
onPress={onPrevious}
109109
>
110110
<Text
@@ -123,7 +123,7 @@ function RNMultiStep(props: any): any {
123123

124124
{canMove.canMoveNext && (
125125
<TouchableOpacity
126-
style={props.buttonStyle ? props.buttonStyle : styles.styleBtn}
126+
style={props.nextButtonStyle ? props.nextButtonStyle : styles.styleBtn}
127127
onPress={onNext}
128128
>
129129
<Text
@@ -141,7 +141,7 @@ function RNMultiStep(props: any): any {
141141
)}
142142
{!canMove.canMoveNext && typeof props.onSubmit === 'function' && (
143143
<TouchableOpacity
144-
style={props.buttonStyle ? props.buttonStyle : styles.styleBtn}
144+
style={props.submitButtonStyle ? props.submitButtonStyle : styles.submitStyleBtn}
145145
onPress={onSubmit}
146146
>
147147
<Text
@@ -182,7 +182,25 @@ const styles = StyleSheet.create({
182182
paddingLeft: 10,
183183
paddingRight: 30,
184184
},
185-
styleBtn: {
185+
prevStyleBtn: {
186+
alignItems: 'center',
187+
backgroundColor: '#1e1ee3',
188+
borderRadius: 50,
189+
shadowColor: '#5252d1',
190+
margin: 10,
191+
padding: 20,
192+
width: '40%',
193+
},
194+
submitStyleBtn: {
195+
alignItems: 'center',
196+
backgroundColor: 'grey',
197+
borderRadius: 50,
198+
shadowColor: '#5252d1',
199+
margin: 10,
200+
padding: 20,
201+
width: '40%',
202+
},
203+
nextStyleBtn: {
186204
alignItems: 'center',
187205
backgroundColor: '#1e1ee3',
188206
borderRadius: 50,
@@ -200,7 +218,9 @@ RNMultiStep.propTypes = {
200218
children: PropTypes.any,
201219
containerStyle: PropTypes.object,
202220
containerButtonStyle: PropTypes.object,
203-
buttonStyle: PropTypes.object,
221+
prevButtonStyle: PropTypes.object,
222+
nextButtonStyle: PropTypes.object,
223+
submitButtonStyle: PropTypes.object,
204224
buttonLabelStyle: PropTypes.object,
205225
onMoveNext: PropTypes.func,
206226
onMovePrevious: PropTypes.func,

0 commit comments

Comments
 (0)