From 0268c0edd38477e9d345035ec9741b7472a10ff5 Mon Sep 17 00:00:00 2001 From: David Li Date: Thu, 12 Oct 2017 12:55:38 -0400 Subject: [PATCH] [Props] update deprecated View.propTypes to ViewPropTypes --- src/SortableList.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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,