Skip to content

Commit fe84e0b

Browse files
eriveltoneliasgitim
authored andcommitted
remove warning that data need be an object [data allow object and array] (#82)
* Update SortableList.js * Update data accept PropTypes
1 parent cc03b8e commit fe84e0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SortableList.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ uniqueRowKey.id = 0
1515

1616
export default class SortableList extends Component {
1717
static propTypes = {
18-
data: PropTypes.object.isRequired,
18+
data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired,
1919
order: PropTypes.arrayOf(PropTypes.any),
2020
style: ViewPropTypes.style,
2121
contentContainerStyle: ViewPropTypes.style,

0 commit comments

Comments
 (0)