11import React , { Component } from 'react' ;
22import PropTypes from 'prop-types' ;
3- import {
4- Animated ,
5- ART ,
6- StyleSheet ,
7- Text ,
8- View ,
9- ViewPropTypes ,
10- } from 'react-native' ;
3+ import { Animated , ART , StyleSheet , Text , View } from 'react-native' ;
114
125import Arc from './Shapes/Arc' ;
136import withAnimation from './withAnimation' ;
@@ -17,8 +10,6 @@ const CIRCLE = Math.PI * 2;
1710const AnimatedSurface = Animated . createAnimatedComponent ( ART . Surface ) ;
1811const AnimatedArc = Animated . createAnimatedComponent ( Arc ) ;
1912
20- const RNViewPropTypes = ViewPropTypes || View . propTypes ;
21-
2213const styles = StyleSheet . create ( {
2314 container : {
2415 backgroundColor : 'transparent' ,
@@ -43,9 +34,9 @@ export class ProgressCircle extends Component {
4334 rotation : PropTypes . instanceOf ( Animated . Value ) ,
4435 showsText : PropTypes . bool ,
4536 size : PropTypes . number ,
46- style : RNViewPropTypes . style ,
37+ style : PropTypes . any ,
4738 strokeCap : PropTypes . oneOf ( [ 'butt' , 'square' , 'round' ] ) ,
48- textStyle : Text . propTypes . style ,
39+ textStyle : PropTypes . any ,
4940 thickness : PropTypes . number ,
5041 unfilledColor : PropTypes . string ,
5142 endAngle : PropTypes . number ,
0 commit comments