diff --git a/src/SortableList.js b/src/SortableList.js index df919c5..043beee 100644 --- a/src/SortableList.js +++ b/src/SortableList.js @@ -1,6 +1,6 @@ import React, {Component} from 'react'; import PropTypes from 'prop-types'; -import {ScrollView, View, StyleSheet, Platform, RefreshControl} from 'react-native'; +import {ScrollView, View, StyleSheet, Platform, RefreshControl, ViewPropTypes} from 'react-native'; import {shallowEqual, swapArrayElements} from './utils'; import Row from './Row'; @@ -17,8 +17,8 @@ export default class SortableList extends Component { static propTypes = { data: PropTypes.object.isRequired, order: PropTypes.arrayOf(PropTypes.any), - style: View.propTypes.style, - contentContainerStyle: View.propTypes.style, + style: ViewPropTypes.style, + contentContainerStyle: ViewPropTypes.style, sortingEnabled: PropTypes.bool, scrollEnabled: PropTypes.bool, horizontal: PropTypes.bool,