@@ -124,7 +124,7 @@ export default class ActionSheetAndroid extends Component {
124
124
console . debug ( 'close' ) ;
125
125
} }
126
126
>
127
- < View style = { Style . wrapper } >
127
+ < View style = { [ Style . wrapper , this . props . style ] } >
128
128
< Animated . View style = { [ Style . body , { top : this . state . animatedHeight } ] } >
129
129
< View style = { [ Style . hackWrapper ,
130
130
! cancelButtonIndex && Style . hackCancelStyle ,
@@ -153,7 +153,7 @@ export default class ActionSheetAndroid extends Component {
153
153
] } >
154
154
< Text style = { [
155
155
Style . itemText , tintColor && { color : tintColor } ,
156
- destructiveButtonIndex === item . index && Style . deleteText ] } >
156
+ destructiveButtonIndex === item . index && Style . deleteText && this . props . destructiveTextStyle , destructiveButtonIndex !== item . index && this . props . itemTextStyle ] } >
157
157
{ item . item }
158
158
</ Text >
159
159
</ View >
@@ -169,7 +169,7 @@ export default class ActionSheetAndroid extends Component {
169
169
onPress = { ( ) => { this . choseItem ( cancelButtonIndex ) ; } } >
170
170
< View style = { [ Style . itemCancel ,
171
171
( this . WHOLEACTIONHEIGHT < this . MAXACTIONHEIGHT ) && Style . border ] } >
172
- < Text style = { [ Style . itemText , Style . cancelText , tintColor && { color : tintColor } ] } > { options [ cancelButtonIndex ] } </ Text >
172
+ < Text style = { [ Style . itemText , Style . cancelText , tintColor && { color : tintColor } , this . props . cancelTextStyle ] } > { options [ cancelButtonIndex ] } </ Text >
173
173
</ View >
174
174
</ TouchableHighlight >
175
175
) }
@@ -184,10 +184,11 @@ const Style = StyleSheet.create({
184
184
wrapper : {
185
185
flex : 1 ,
186
186
alignItems : 'center' ,
187
- backgroundColor : '#00000099'
187
+ backgroundColor : '#00000099' ,
188
+ justifyContent : 'flex-end'
188
189
} ,
189
190
body : {
190
- width : width - 20
191
+ width : width - 20 ,
191
192
} ,
192
193
itemContainer : {
193
194
alignItems : 'center' ,
0 commit comments