Skip to content

Commit

Permalink
Replace deprecated View.propTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
Fábio Paiva committed Nov 2, 2017
1 parent cb64acb commit c3e01bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PageControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ var assign = require('object-assign');
var PropTypes = require('prop-types');
var createReactClass = require('create-react-class');

var { StyleSheet, View, TouchableWithoutFeedback } = ReactNative;
var { StyleSheet, View, TouchableWithoutFeedback, ViewPropTypes } = ReactNative;

var PageControl = createReactClass({
propTypes: {
Expand All @@ -14,8 +14,8 @@ var PageControl = createReactClass({
pageIndicatorTintColor: PropTypes.string,
currentPageIndicatorTintColor: PropTypes.string,
indicatorSize: PropTypes.object,
indicatorStyle: View.propTypes.style,
currentIndicatorStyle: View.propTypes.style,
indicatorStyle: ViewPropTypes.style,
currentIndicatorStyle: ViewPropTypes.style,
onPageIndicatorPress: PropTypes.func
},

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-page-control",
"version": "1.1.0",
"version": "1.1.1",
"description": "React native page control, like ios UIPageControl",
"author": "silentcloud",
"repository": {
Expand Down

0 comments on commit c3e01bc

Please sign in to comment.