Skip to content

Commit d211995

Browse files
chirag04facebook-github-bot
authored andcommitted
remove max children limitation on SwipeableQuickActions
Summary: **motivation** Right now `SwipeableQuickActions` only allows two actions. Let this limit be in the userland. cc fred2028 Closes facebook#8528 Differential Revision: D4211729 Pulled By: ericvicenti fbshipit-source-id: 903592190b9855ffe9da44864cdc276bc1e18a7c
1 parent 1c249e4 commit d211995

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Libraries/Experimental/SwipeableRow/SwipeableQuickActions.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ const React = require('React');
2727
const StyleSheet = require('StyleSheet');
2828
const View = require('View');
2929

30-
const MAX_QUICK_ACTIONS = 2;
31-
3230
/**
3331
* A thin wrapper around standard quick action buttons that can, if the user
3432
* chooses, be used with SwipeableListView. Sample usage is as follows, in the
@@ -53,7 +51,7 @@ class SwipeableQuickActions extends React.Component {
5351

5452
// Multiple children
5553
if (children instanceof Array) {
56-
for (let i = 0; i < children.length && i < MAX_QUICK_ACTIONS; i++) {
54+
for (let i = 0; i < children.length; i++) {
5755
buttons.push(children[i]);
5856

5957
// $FlowFixMe found when converting React.createClass to ES6

0 commit comments

Comments
 (0)