From a844c888f522d80813ba105954ffa7da4163f84b Mon Sep 17 00:00:00 2001 From: Denis Shvets Date: Thu, 1 Jun 2017 17:54:49 +0300 Subject: [PATCH] Update from View.propTypes to ViewPropTypes to match RN v0.44.x --- package.json | 2 +- src/index.js | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 423b146..1dc91df 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ }, "peerDependencies": { "react": ">=15.2.0", - "react-native": ">=0.29.0" + "react-native": ">=0.44.0" }, "repository": { "type": "git", diff --git a/src/index.js b/src/index.js index 58c9e0f..5efc2b2 100644 --- a/src/index.js +++ b/src/index.js @@ -1,5 +1,5 @@ import React, {PropTypes, PureComponent} from 'react'; -import {Animated, Easing, PanResponder, StyleSheet, View} from 'react-native'; +import {Animated, Easing, PanResponder, StyleSheet, View, ViewPropTypes} from 'react-native'; function noop() {} @@ -79,12 +79,12 @@ export default class Swipeable extends PureComponent { swipeStartMinDistance: PropTypes.number, // styles - style: View.propTypes.style, - leftContainerStyle: View.propTypes.style, - leftButtonContainerStyle: View.propTypes.style, - rightContainerStyle: View.propTypes.style, - rightButtonContainerStyle: View.propTypes.style, - contentContainerStyle: View.propTypes.style + style: ViewPropTypes.style, + leftContainerStyle: ViewPropTypes.style, + leftButtonContainerStyle: ViewPropTypes.style, + rightContainerStyle: ViewPropTypes.style, + rightButtonContainerStyle: ViewPropTypes.style, + contentContainerStyle: ViewPropTypes.style }; static defaultProps = {