eslint-plugin-react-native
                                
                                 eslint-plugin-react-native copied to clipboard
                                
                                    eslint-plugin-react-native copied to clipboard
                            
                            
                            
                        no-unused-styles shows error when style object property names are quoted
no-unused-styles reports unused style detected when the style object property names are quoted
const styles = StyleSheet.create({
    'container': {
        alignItems: 'center',
        backgroundColor: Color.white,
        flex: 1,
        justifyContent: 'center'
    }
});
/** Returns the application's root component
 * @returns {React.Component} root component
 */
export default function App () {
    return (
        <View style={styles.container}>
            <Text>Open up App.js to start working on your app!</Text>
            <Text>Changes you make will automatically reload.</Text>
            <Text>Shake your phone to open the developer menu.</Text>
        </View>
    );
}
eslint App.js
6:5  error  Unused style detected: styles                    react-native/no-unused-styles