I made a project, but I found a lot of imports that are useless and I want to delete them automatically
I tried using a linter but it wasn't automatic
import { Text, View, StyleSheet, TouchableOpacity } from 'react-native'
import LinearGradient from 'react-native-linear-gradient'
I want to optimize the import automatically react native as in the android studio
Idk which IDE you are using but for Visual Studio Code which is most popular atm there's a simple rule.
"editor.codeActionsOnSave": {
"source.organizeImports": true
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With