mirror of
https://github.com/status-im/react-native.git
synced 2025-02-05 14:13:26 +00:00
Fix PickerIOSExample
Reviewed By: nicklockwood Differential Revision: D2735834 fb-gh-sync-id: 8f2777ec2afe007523ea85cca27f40497910d2d1
This commit is contained in:
parent
202222504e
commit
066ebc021f
@ -113,9 +113,10 @@ var PickerStyleExample = React.createClass({
|
|||||||
getInitialState: function() {
|
getInitialState: function() {
|
||||||
return {
|
return {
|
||||||
carMake: 'cadillac',
|
carMake: 'cadillac',
|
||||||
|
modelIndex: 0,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
render: function() {
|
render: function() {
|
||||||
var make = CAR_MAKES_AND_MODELS[this.state.carMake];
|
var make = CAR_MAKES_AND_MODELS[this.state.carMake];
|
||||||
var selectionString = make.name + ' ' + make.models[this.state.modelIndex];
|
var selectionString = make.name + ' ' + make.models[this.state.modelIndex];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user