Skip to content

isLoading and isDisabled is not working #24

@albo1337

Description

@albo1337

Hi,

thx for this great Button. I have a question about the functionality of "isDisabled" and "isLoading". It won't work for me when I'm doing this:

...
var isLoading = false;
export default class extends React.Component
...
return (
            <View style={styles.container}>
                <View style={styles.input}>
                    ...
                    <Button
                        onPress={this._onLoginPressed.bind(this)}
                        isDisabled={isLoading}
                        isLoading={isLoading}>
                        Login
                    </Button>
                </View>
            </View>
        );
    }

If I press the button, my variable "isLoading" gets true but the button is still enabled. What am I doing wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions