'use strict';

var React = require('react-native');
var {
  Component,
  SegmentedControlIOS
} = React;

class SegmentedControl extends Component {
  render() {
    return (
      <SegmentedControlIOS
        values={this.props.values}
        selectedIndex={this.props.selectedIndex}
        onChange={this.props.onChange}
      />
    )
  }
}

export default SegmentedControl;

@@ -296,16 +296,100 @@
 Change=%7B
+event =%3E %7B%0A          const index = event.nativeEvent.selectedSegmentIndex%0A          
 this.pro
@@ -399,16 +399,33 @@
 onChange
+(index)%0A        %7D
 %7D%0A      

Fix iOS crash when switching performance filter selection by extracting index correctly