mirror of
https://github.com/bartgryszko/react-native-circular-progress.git
synced 2026-01-25 16:25:58 +00:00
Merge pull request #256 from aboveyunhai/master
Fix proptypes warning while using Animated.Value on Size prop
This commit is contained in:
commit
3f88f9b94e
@ -1,6 +1,6 @@
|
||||
import React from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import { View } from 'react-native';
|
||||
import { Animated, View } from 'react-native';
|
||||
import { Svg, Path, G } from 'react-native-svg';
|
||||
|
||||
export default class CircularProgress extends React.PureComponent {
|
||||
@ -133,7 +133,10 @@ export default class CircularProgress extends React.PureComponent {
|
||||
|
||||
CircularProgress.propTypes = {
|
||||
style: PropTypes.object,
|
||||
size: PropTypes.number.isRequired,
|
||||
size: PropTypes.oneOfType([
|
||||
PropTypes.number,
|
||||
PropTypes.instanceOf(Animated.Value),
|
||||
]).isRequired,
|
||||
fill: PropTypes.number.isRequired,
|
||||
width: PropTypes.number.isRequired,
|
||||
backgroundWidth: PropTypes.number,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user