-
Notifications
You must be signed in to change notification settings - Fork 458
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password field type? #4
Comments
It will lend soon: |
Is my structure or syntax incorrect for this? var options = { On Sun, Apr 5, 2015 at 10:24 AM, Giulio Canti [email protected]
|
It seems ok. This is my test case and it works (tcomb-form-native v0.1.6, react-native v0.3.4): var Type = t.struct({
password: t.Str
});
var options = {
fields: {
password: {
password: true,
secureTextEntry: true
}
}
};
var AwesomeProject = React.createClass({
onPress: function () {
var value = this.refs.form.getValue();
if (value) {
console.log(value);
}
},
render: function() {
return (
<View style={styles.container}>
<Form
ref="form"
type={Type}
options={options}
/>
<TouchableHighlight style={styles.button} onPress={this.onPress} underlayColor='#99d9f4'>
<Text style={styles.buttonText}>Save</Text>
</TouchableHighlight>
</View>
);
}
}); |
which is the 'password' option used for? is not enough with secureTextEntry? |
Awesome plugin!
Is there a way to set a field type as password so the characters become dotted out and not viewable while typing?
Thanks,
-Tim
The text was updated successfully, but these errors were encountered: