Skip to content

Commit af8e828

Browse files
dlimxgitim
authored andcommitted
[Props] update deprecated View.propTypes to ViewPropTypes (#71)
1 parent f8260e2 commit af8e828

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/SortableList.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React, {Component} from 'react';
22
import PropTypes from 'prop-types';
3-
import {ScrollView, View, StyleSheet, Platform, RefreshControl} from 'react-native';
3+
import {ScrollView, View, StyleSheet, Platform, RefreshControl, ViewPropTypes} from 'react-native';
44
import {shallowEqual, swapArrayElements} from './utils';
55
import Row from './Row';
66

@@ -17,8 +17,8 @@ export default class SortableList extends Component {
1717
static propTypes = {
1818
data: PropTypes.object.isRequired,
1919
order: PropTypes.arrayOf(PropTypes.any),
20-
style: View.propTypes.style,
21-
contentContainerStyle: View.propTypes.style,
20+
style: ViewPropTypes.style,
21+
contentContainerStyle: ViewPropTypes.style,
2222
sortingEnabled: PropTypes.bool,
2323
scrollEnabled: PropTypes.bool,
2424
horizontal: PropTypes.bool,

0 commit comments

Comments
 (0)