Skip to content

Commit 7fd8ee4

Browse files
authored
Merge pull request #454 from Windastella/master
ViewPropType Deprecation Fix
2 parents e9d5935 + 9c97d3b commit 7fd8ee4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

components/SwipeListView.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,7 +563,7 @@ SwipeListView.propTypes = {
563563
/**
564564
* Styles for the parent wrapper View of the SwipeRow
565565
*/
566-
swipeRowStyle: ViewPropTypes.style,
566+
swipeRowStyle: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
567567
/**
568568
* Called when the FlatList ref is set and passes a ref to the FlatList
569569
* e.g. listViewRef={ ref => this._swipeListViewRef = ref }

components/SwipeRow.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ SwipeRow.propTypes = {
824824
/**
825825
* Styles for the parent wrapper View of the SwipeRow
826826
*/
827-
style: ViewPropTypes.style,
827+
style: ViewPropTypes ? ViewPropTypes.style : PropTypes.object,
828828
/**
829829
* Should the row do a slide out preview to show that it is swipeable
830830
*/

0 commit comments

Comments
 (0)