From c227a8cf81c4debf1f6e832ba949c38604a7ac97 Mon Sep 17 00:00:00 2001 From: Erivelton Elias Date: Tue, 9 Jan 2018 17:12:37 -0200 Subject: [PATCH 1/2] Update SortableList.js --- src/SortableList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SortableList.js b/src/SortableList.js index ab078f0..26a1524 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -15,7 +15,7 @@ uniqueRowKey.id = 0 export default class SortableList extends Component { static propTypes = { - data: PropTypes.object.isRequired, + data: PropTypes.oneOfType([PropTypes.array.isRequired, PropTypes.object.isRequired]), order: PropTypes.arrayOf(PropTypes.any), style: ViewPropTypes.style, contentContainerStyle: ViewPropTypes.style, From 49607af9a35e8ef701807c90b7860f157898b2d0 Mon Sep 17 00:00:00 2001 From: Erivelton Elias Date: Wed, 17 Jan 2018 15:14:51 -0200 Subject: [PATCH 2/2] Update data accept PropTypes --- src/SortableList.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SortableList.js b/src/SortableList.js index 26a1524..d251889 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -15,7 +15,7 @@ uniqueRowKey.id = 0 export default class SortableList extends Component { static propTypes = { - data: PropTypes.oneOfType([PropTypes.array.isRequired, PropTypes.object.isRequired]), + data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired, order: PropTypes.arrayOf(PropTypes.any), style: ViewPropTypes.style, contentContainerStyle: ViewPropTypes.style,