diff --git a/Example/Switch.js b/Example/Switch.js index a2219da..e6455be 100644 --- a/Example/Switch.js +++ b/Example/Switch.js @@ -1,7 +1,6 @@ import React, { Component } from 'react' import PropTypes from "prop-types" import { - ViewPropTypes, ColorPropType, StyleSheet, Animated, @@ -23,8 +22,8 @@ export default class extends Component { backgroundInactive: ColorPropType, onAsyncPress: PropTypes.func, onSyncPress: PropTypes.func, - style: ViewPropTypes.style, - circleStyle: ViewPropTypes.style + style: PropTypes.object, + circleStyle: PropTypes.object } static defaultProps = { diff --git a/lib/index.js b/lib/index.js index 7715b57..4b99416 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,7 +1,6 @@ import React, { Component } from 'react' import PropTypes from "prop-types" import { - ViewPropTypes, ColorPropType, StyleSheet, Animated, @@ -23,8 +22,8 @@ export default class extends Component { backgroundInactive: ColorPropType, onAsyncPress: PropTypes.func, onSyncPress: PropTypes.func, - style: ViewPropTypes.style, - circleStyle: ViewPropTypes.style + style: PropTypes.object, + circleStyle: PropTypes.object } static defaultProps = {