Commit f088bca
ProgressBarAndroid checks indeterminate prop type manually
Summary:
Causes a YellowBox warning: "You are manually calling a React.PropTypes validation function for 'indeterminate' prop on 'ProgressBarAndroid'."
Initially reported here: facebook#9692 but closed by the creator because he switched to using ActivityIndicator.
Fixed as per the guidelines here: https://facebook.github.io/react/warnings/dont-call-proptypes.html
```
/**
* Sample React Native App
* https://github.com/facebook/react-native
* flow
*/
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
View,
ProgressBarAndroid
} from 'react-native';
export default class AwesomeProject extends Component {
render() {
return (
<View style={styles.container}>
<ProgressBarAndroid indeterminate={true} styleAttr="Horizontal"/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1
}
});
AppRegistry.registerComponent('AwesomeProject', () => AwesomeProject);
```
Closes facebook#11791
Differential Revision: D4998602
Pulled By: davidaurelio
fbshipit-source-id: e210684e2f2497238e4d3d0adf2754075be81e981 parent eb19904 commit f088bca
File tree
1 file changed
+2
-2
lines changed- Libraries/Components/ProgressBarAndroid
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments