mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 23:05:00 +08:00
Auto-fix lint errors
Reviewed By: bestander Differential Revision: D3683952 fbshipit-source-id: 9484d0b0e86859e8edaca0da1aa13a667f200905
This commit is contained in:
committed by
Facebook Github Bot 4
parent
8e2906ae89
commit
94666f16c7
@@ -79,11 +79,11 @@ class PickerAndroid extends React.Component {
|
||||
// Translate prop and children into stuff that the native picker understands.
|
||||
_stateFromProps = (props) => {
|
||||
var selectedIndex = 0;
|
||||
let items = ReactChildren.map(props.children, (child, index) => {
|
||||
const items = ReactChildren.map(props.children, (child, index) => {
|
||||
if (child.props.value === props.selectedValue) {
|
||||
selectedIndex = index;
|
||||
}
|
||||
let childProps = {
|
||||
const childProps = {
|
||||
value: child.props.value,
|
||||
label: child.props.label,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user