Skip to content

Commit

Permalink
Remove deprecation warning when using indeterminate and styleAttr !==…
Browse files Browse the repository at this point in the history
… 'Horizontal' in ProgressBarAndroid

- We delegate to ProgressBarAndroid in ActivityIndicator as of facebook#16435 so this warning is thrown constantly.
  • Loading branch information
brentvatne authored and ide committed Oct 18, 2017
1 parent 9cda034 commit 9e77fe1
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,6 @@ class ProgressBarAndroid extends ReactNative.NativeComponent {
animating: true,
};

componentDidMount() {
if (this.props.indeterminate && this.props.styleAttr !== 'Horizontal') {
console.warn(
'Circular indeterminate `ProgressBarAndroid`' +
'is deprecated. Use `ActivityIndicator` instead.'
);
}
}

render() {
return <AndroidProgressBar {...this.props} />;
}
Expand Down

0 comments on commit 9e77fe1

Please sign in to comment.