@@ -104,7 +104,7 @@ function RNMultiStep(props: any): any {
104
104
>
105
105
{ canMove . canMovePrevious && (
106
106
< TouchableOpacity
107
- style = { props . buttonStyle ? props . buttonStyle : styles . styleBtn }
107
+ style = { props . prevButtonStyle ? props . prevButtonStyle : styles . prevStyleBtn }
108
108
onPress = { onPrevious }
109
109
>
110
110
< Text
@@ -123,7 +123,7 @@ function RNMultiStep(props: any): any {
123
123
124
124
{ canMove . canMoveNext && (
125
125
< TouchableOpacity
126
- style = { props . buttonStyle ? props . buttonStyle : styles . styleBtn }
126
+ style = { props . nextButtonStyle ? props . nextButtonStyle : styles . styleBtn }
127
127
onPress = { onNext }
128
128
>
129
129
< Text
@@ -141,7 +141,7 @@ function RNMultiStep(props: any): any {
141
141
) }
142
142
{ ! canMove . canMoveNext && typeof props . onSubmit === 'function' && (
143
143
< TouchableOpacity
144
- style = { props . buttonStyle ? props . buttonStyle : styles . styleBtn }
144
+ style = { props . submitButtonStyle ? props . submitButtonStyle : styles . submitStyleBtn }
145
145
onPress = { onSubmit }
146
146
>
147
147
< Text
@@ -182,7 +182,25 @@ const styles = StyleSheet.create({
182
182
paddingLeft : 10 ,
183
183
paddingRight : 30 ,
184
184
} ,
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 : {
186
204
alignItems : 'center' ,
187
205
backgroundColor : '#1e1ee3' ,
188
206
borderRadius : 50 ,
@@ -200,7 +218,9 @@ RNMultiStep.propTypes = {
200
218
children : PropTypes . any ,
201
219
containerStyle : PropTypes . object ,
202
220
containerButtonStyle : PropTypes . object ,
203
- buttonStyle : PropTypes . object ,
221
+ prevButtonStyle : PropTypes . object ,
222
+ nextButtonStyle : PropTypes . object ,
223
+ submitButtonStyle : PropTypes . object ,
204
224
buttonLabelStyle : PropTypes . object ,
205
225
onMoveNext : PropTypes . func ,
206
226
onMovePrevious : PropTypes . func ,
0 commit comments