Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

Lines changed: 1 addition & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /