Skip to content

Possible bug in example code #997

Open
Open
@pedro-w

Description

@pedro-w

In this snippet

componentDidMount() {
Appearance.addChangeListener(this.onAppThemeChanged);
};
componentWillUnmount() {
Appearance.addChangeListener(this.onAppThemeChanged);
};

is it correct to call addChangeListener in response to componentDidMount and componentWillUnmount?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Workstream: Gallery and SamplesHave useful samples of RNW app and library projects to help developers.bugSomething isn't workingdocumentationImprovements or additions to documentation

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions