Skip to content

no-unused-styles works only with React class components #241

Open
@henrikra

Description

@henrikra

Here is example component where no-unused-styles works:
image

But if the same component is refactored to functional component the validation is not working anymore

image

Also the docs https://github.com/Intellicode/eslint-plugin-react-native/blob/master/docs/rules/no-unused-styles.md don't say anything that this validation should work only on classes so I think this is a bug then.

Does anybody have a clue how to fix this? I can help if needed 👍

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions