@@ -98,7 +98,7 @@ function RNMultiStep(props: any): any {
98
98
>
99
99
{ canMove . canMovePrevious && (
100
100
< TouchableOpacity
101
- style = { props . buttonStyle ? props . buttonStyle : styles . styleBtn }
101
+ style = { props . prevButtonStyle ? props . prevButtonStyle : styles . prevStyleBtn }
102
102
onPress = { onPrevious }
103
103
>
104
104
< Text
@@ -117,7 +117,7 @@ function RNMultiStep(props: any): any {
117
117
118
118
{ canMove . canMoveNext && (
119
119
< TouchableOpacity
120
- style = { props . buttonStyle ? props . buttonStyle : styles . styleBtn }
120
+ style = { props . nextButtonStyle ? props . nextButtonStyle : styles . styleBtn }
121
121
onPress = { onNext }
122
122
>
123
123
< Text
@@ -135,7 +135,7 @@ function RNMultiStep(props: any): any {
135
135
) }
136
136
{ ! canMove . canMoveNext && typeof props . onSubmit === 'function' && (
137
137
< TouchableOpacity
138
- style = { props . buttonStyle ? props . buttonStyle : styles . styleBtn }
138
+ style = { props . submitButtonStyle ? props . submitButtonStyle : styles . submitStyleBtn }
139
139
onPress = { onSubmit }
140
140
>
141
141
< Text
@@ -176,7 +176,25 @@ const styles = StyleSheet.create({
176
176
paddingLeft : 10 ,
177
177
paddingRight : 30 ,
178
178
} ,
179
- styleBtn : {
179
+ prevStyleBtn : {
180
+ alignItems : 'center' ,
181
+ backgroundColor : '#1e1ee3' ,
182
+ borderRadius : 50 ,
183
+ shadowColor : '#5252d1' ,
184
+ margin : 10 ,
185
+ padding : 20 ,
186
+ width : '40%' ,
187
+ } ,
188
+ submitStyleBtn : {
189
+ alignItems : 'center' ,
190
+ backgroundColor : 'grey' ,
191
+ borderRadius : 50 ,
192
+ shadowColor : '#5252d1' ,
193
+ margin : 10 ,
194
+ padding : 20 ,
195
+ width : '40%' ,
196
+ } ,
197
+ nextStyleBtn : {
180
198
alignItems : 'center' ,
181
199
backgroundColor : '#1e1ee3' ,
182
200
borderRadius : 50 ,
@@ -194,7 +212,9 @@ RNMultiStep.propTypes = {
194
212
children : PropTypes . any ,
195
213
containerStyle : PropTypes . object ,
196
214
containerButtonStyle : PropTypes . object ,
197
- buttonStyle : PropTypes . object ,
215
+ prevButtonStyle : PropTypes . object ,
216
+ nextButtonStyle : PropTypes . object ,
217
+ submitButtonStyle : PropTypes . object ,
198
218
buttonLabelStyle : PropTypes . object ,
199
219
onMoveNext : PropTypes . func ,
200
220
onMovePrevious : PropTypes . func ,
0 commit comments