From 27bcbdc1909a864f85a1cc238c7437c88ff0d59b Mon Sep 17 00:00:00 2001 From: Brent Vatne Date: Wed, 18 Oct 2017 11:49:05 -0700 Subject: [PATCH] Remove deprecation warning when using indeterminate and styleAttr !== 'Horizontal' in ProgressBarAndroid - We delegate to ProgressBarAndroid in ActivityIndicator as of https://github.com/facebook/react-native/pull/16435 so this warning is thrown constantly. --- .../ProgressBarAndroid/ProgressBarAndroid.android.js | 9 --------- 1 file changed, 9 deletions(-) diff --git a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js index de5e0e52e35c40..3db3de35c1af6b 100644 --- a/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js +++ b/Libraries/Components/ProgressBarAndroid/ProgressBarAndroid.android.js @@ -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 ; }