Skip to content

Commit

Permalink
Merge pull request jeanregisser#77 from jamesreggio/viewstyleproptypes
Browse files Browse the repository at this point in the history
Remove dependency upon deprecated View.propTypes
  • Loading branch information
jeanregisser authored Aug 4, 2017
2 parents 1995b92 + 8786738 commit 5997db8
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Slider.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
StyleSheet,
PanResponder,
View,
Easing
Easing,
ViewPropTypes
} from "react-native";

import PropTypes from 'prop-types';
Expand Down Expand Up @@ -130,17 +131,17 @@ export default class Slider extends PureComponent {
/**
* The style applied to the slider container.
*/
style: View.propTypes.style,
style: ViewPropTypes.style,

/**
* The style applied to the track.
*/
trackStyle: View.propTypes.style,
trackStyle: ViewPropTypes.style,

/**
* The style applied to the thumb.
*/
thumbStyle: View.propTypes.style,
thumbStyle: ViewPropTypes.style,

/**
* Sets an image for the thumb.
Expand Down

0 comments on commit 5997db8

Please sign in to comment.