File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
src/interactableComponents/drawer Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,8 @@ class NewDrawer extends PureBaseComponent {
128
128
// TODO: enable support for rendering more than one left item
129
129
renderLeftActions = ( progress , dragX ) => {
130
130
const { leftItem} = this . getThemeProps ( ) ;
131
- return this . renderActions ( [ leftItem ] , progress , dragX ) ;
131
+ const leftItems = leftItem ? [ leftItem ] : undefined ;
132
+ return this . renderActions ( leftItems , progress , dragX ) ;
132
133
} ;
133
134
134
135
renderRightActions = ( progress , dragX ) => {
@@ -190,10 +191,10 @@ class NewDrawer extends PureBaseComponent {
190
191
style = { [
191
192
styles . actionIcon ,
192
193
{
193
- width : itemsIconSize ,
194
- height : itemsIconSize ,
195
- tintColor : itemsTintColor ,
196
- opacity,
194
+ width : itemsIconSize ,
195
+ height : itemsIconSize ,
196
+ tintColor : itemsTintColor ,
197
+ opacity,
197
198
transform : [ { scale} ]
198
199
}
199
200
] }
@@ -202,12 +203,12 @@ class NewDrawer extends PureBaseComponent {
202
203
{ item . text && (
203
204
< Animated . Text
204
205
style = { [
205
- styles . actionText ,
206
+ styles . actionText ,
206
207
{
207
- color : itemsTintColor ,
208
- opacity,
208
+ color : itemsTintColor ,
209
+ opacity,
209
210
transform : [ { scale} ]
210
- } ,
211
+ } ,
211
212
itemsTextStyle
212
213
] }
213
214
>
You can’t perform that action at this time.
0 commit comments