bietkul / react-native-form-builder

Handle your forms in a smart way
MIT License
121 stars 68 forks source link

Picker iOS errror #22

Open mbs8 opened 5 years ago

mbs8 commented 5 years ago

simulator screen shot - iphone 6 - 2018-10-31 at 10 18 53

I had this issue when tried to use the picker field, I think the error is in: picker/index.js#L27 on line 57

      <View
        style={Object.assign(styles.pickerMainIOS, {
          backgroundColor: theme.pickerBgColor,
          borderBottomColor: theme.inputBorderColor,
          borderBottomWidth: theme.borderWidth,
        })}
     >

It works fine like this:

      <View
        style={{...styles.pickerMainIOS, ...{
          backgroundColor: theme.pickerBgColor,
          borderBottomColor: theme.inputBorderColor,
          borderBottomWidth: theme.borderWidth,
        }}}
      >
angelalalachang commented 5 years ago

I also got the same issue, and making the changes suggested above on Line 57 /src/fields/picker/index.js fixed it. Thank you @mbs8 !