eslint-plugin-react-native
eslint-plugin-react-native copied to clipboard
Rule request: Pressable component usage only, no TouchableOpacity, Touchable* components
The Touchable series of components are discouraged now according to the React Native documentation with the following statement on the documentation:
If you're looking for a more extensive and future-proof way to handle touch-based input, check out the Pressable API.
It would be good to have a linting rule on any usage of Touchables, encouraging Pressable instead.