2017-05-31 49 views
-1

我的package.json依赖关系看起来如下阵营本地选择器问题的Android

"dependencies": { 
    "@remobile/react-native-cordova": "^1.0.9", 
    "@remobile/react-native-file-transfer": "^1.0.6", 
    "react": "^15.4.1", 
    "react-native": "^0.38.0", 
    "react-native-android-sms-listener": "^0.4.0", 
    "react-native-chart": "^1.0.8-beta", 
    "react-native-facebook-login": "^1.4.0", 
    "react-native-image-picker": "^0.24.1", 
    "react-native-keyboard-aware-scroll-view": "^0.2.5", 
    "react-native-keychain": "^0.3.2", 
    "react-native-navbar": "^1.4.2", 
    "react-native-onesignal": "^3.0.3", 
    "react-native-vector-icons": "^2.0.0" 
    } 

突然它开始抛出下面的错误。

enter image description here

选择器代码是如下

<View style={{marginRight:5,marginLeft:5, marginTop:5, marginBottom:5}}> 
       <Text style={commonStyles.label}>Type of business</Text> 
       <Picker 
       style={{color: darkTextColor, marginLeft:12}} 
       ref="Type of business" 
       selectedValue={this.props.application.typeOfBusiness} 
       onValueChange={(toi) => this.onUpdate('typeOfBusiness', toi)}> 
       {typeOfBusinessLabels.map((val)=> <Picker.Item key={val} label={val} value={val}/>)} 
       </Picker> 
       <View style={{borderColor:'#29A1C9', borderBottomWidth:1}}></View> 
      </View> 

回答

0

与RN捆绑的问题。自动修复。