From 9e77fe1344b86f68331a01f7af2ae10d36af5f67 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 3f959c40e51f7e..273d9e6813100b 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 ; }