Skip to content

Commit

Permalink
Merge pull request jshanson7#17 from denis-shvets/pr/rn-0.44.2
Browse files Browse the repository at this point in the history
Update from View.propTypes to ViewPropTypes to match RN v0.44.x
  • Loading branch information
jshanson7 authored Jun 27, 2017
2 parents c6ead85 + a844c88 commit c4524fe
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
},
"peerDependencies": {
"react": ">=15.2.0",
"react-native": ">=0.29.0"
"react-native": ">=0.44.0"
},
"repository": {
"type": "git",
Expand Down
14 changes: 7 additions & 7 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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() {}

Expand Down Expand Up @@ -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 = {
Expand Down

0 comments on commit c4524fe

Please sign in to comment.