Also please include the version of react-native-elements that you are using.
1.0.0-beta4
use
<Input
secureTextEntry={secureTextEntry}
placeholder={placeholder}
value={(secureTextEntry ? null : (value === '') ? null : value)}
containerStyle={{marginRight: 15, borderColor: '#ddd'}}
onChangeText={text => onChangeText(name, text)}
errorStyle={(displayError) ? errorStyle : null}
errorMessage={(displayError) ? errorMessage : null}
/>
instead of:
<Input
secureTextEntry={secureTextEntry}
placeholder={placeholder}
value={(secureTextEntry ? null : (value === '') ? null : value)}
onChangeText={text => onChangeText(name, text)}
displayError={displayError}
errorStyle={errorStyle}
errorMessage={errorMessage}
/>
or add it again xD
Come on, you could just add :
{ displayError && <Text style={errorStyle}> {errorMessage} </Text> }
馃槄
I know that's why I added the solution xD but yours is more to the point.
@Tonacatecuhtli You鈥檙e right we missed that in the release notes ! We added the a label feature + removed displayError. Will add that
Most helpful comment
@Tonacatecuhtli You鈥檙e right we missed that in the release notes ! We added the a
labelfeature + removeddisplayError. Will add that