removeUnusedStyle README
This is a VS code extension to remove unused style in react-native
Usage
type CMD+P
(or CTRL+P
in windows) and enter remove unused style
, then save the file.
how it works
- it uses @babel/parser to parse the code
- say
const styles = Stylesheet.create(obj)
. it will searchstyles.
plus all keys inobj
. - then apply deletion according to the line number parsed by @babel/parser.