diff --git a/src/SortableList.js b/src/SortableList.js index ab078f0..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.object.isRequired, + data: PropTypes.oneOfType([PropTypes.array, PropTypes.object]).isRequired, order: PropTypes.arrayOf(PropTypes.any), style: ViewPropTypes.style, contentContainerStyle: ViewPropTypes.style,