We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d6c5372 commit 1dc82f4Copy full SHA for 1dc82f4
multi-picker.ios.js
@@ -22,20 +22,10 @@ var MultiPickerIOS = React.createClass({
22
},
23
24
getInitialState() {
25
- return this._stateFromProps(this.props);
26
- },
27
-
28
- componentWillReceiveProps(nextProps) {
29
- this.setState(this._stateFromProps(nextProps));
30
31
32
- // converts child PickerComponent and their Item children into state
33
- // that can be sent to RNMultiPicker native class.
34
- _stateFromProps: function (props) {
35
var componentData = [];
36
var selectedIndexes = [];
37
38
- React.Children.forEach(props.children, (child, index) => {
+ React.Children.forEach(this.props.children, (child, index) => {
39
var items = []
40
41
var selectedIndex = 0;
0 commit comments