Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecates ViewPropTypes #247

Merged
merged 1 commit into from
Jul 2, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Deprecates ViewPropTypes
replaces ViewPropTypes.style with PropTypes.object
addresses #244
  • Loading branch information
bwalsh authored Jul 1, 2020
commit c4df58abdc8a844bf540b70e438eabfd1ec88df2
6 changes: 3 additions & 3 deletions src/CircularProgress.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { View, ViewPropTypes } from 'react-native';
import { View } from 'react-native';
import { Svg, Path, G } from 'react-native-svg';

export default class CircularProgress extends React.PureComponent {
Expand Down Expand Up @@ -131,7 +131,7 @@ export default class CircularProgress extends React.PureComponent {
}

CircularProgress.propTypes = {
style: ViewPropTypes.style,
style: PropTypes.object,
size: PropTypes.number.isRequired,
fill: PropTypes.number.isRequired,
width: PropTypes.number.isRequired,
Expand All @@ -143,7 +143,7 @@ CircularProgress.propTypes = {
lineCap: PropTypes.string,
arcSweepAngle: PropTypes.number,
children: PropTypes.func,
childrenContainerStyle: ViewPropTypes.style,
childrenContainerStyle: PropTypes.object,
padding: PropTypes.number,
renderCap: PropTypes.func,
dashedBackground: PropTypes.object,
Expand Down