Skip to content

Placeholder hides automatically #11

@sudharsan1988

Description

@sudharsan1988

When I add the Factory, my placeholder got hidden. But this library works when I removed auto: 'none' on the options. Is this how it works or it can work with custom place holders too?

This one is not working: I mean the placeholder is not visible

var options = {
auto: 'none',

fields: {
firstName: {
placeholder: 'FIRSTNAME',
placeholderTextColor:'#FFFFFF',
textAlign: 'center',
factory: FloatingLabel,
stylesheet: stylesheet, // overriding the style of the textbox
},
lastName: {
placeholder: 'LASTNAME',
placeholderTextColor:'#FFFFFF',
stylesheet: stylesheet, // overriding the style of the textbox
},
email: {
placeholder: 'EMAIL',
placeholderTextColor:'#FFFFFF',
keyboardType: 'email-address',
//onSubmitEditing: () => this.refs.form.getComponent('password').refs.input.focus(),
stylesheet: stylesheet, // overriding the style of the textbox
},
password: {
placeholder: 'PASSWORD',
placeholderTextColor:'#FFFFFF',
secureTextEntry: true,
stylesheet: stylesheet, // overriding the style of the textbox
}

}
};

But this one works but don't show my custom placeholder,

var options = {

fields: {
firstName: {
placeholder: 'FIRSTNAME',
placeholderTextColor:'#FFFFFF',
textAlign: 'center',
factory: FloatingLabel,
stylesheet: stylesheet, // overriding the style of the textbox
},
lastName: {
placeholder: 'LASTNAME',
placeholderTextColor:'#FFFFFF',
stylesheet: stylesheet, // overriding the style of the textbox
},
email: {
placeholder: 'EMAIL',
placeholderTextColor:'#FFFFFF',
keyboardType: 'email-address',
//onSubmitEditing: () => this.refs.form.getComponent('password').refs.input.focus(),
stylesheet: stylesheet, // overriding the style of the textbox
},
password: {
placeholder: 'PASSWORD',
placeholderTextColor:'#FFFFFF',
secureTextEntry: true,
stylesheet: stylesheet, // overriding the style of the textbox
}

}
};

Thank you for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions