eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
no-unused-styles: False positive when using dot access on style.
For example:
width={ styles.thumbnail.width }
This will raise an error with the following style:
thumbnail: {
width: "30%"
},
eslint: error
react-native/no-unused-styles - Unused style detected: styles.thumbnail
Using dot notation is ignored when determining which defined styles are used.