eslint-plugin-react-native icon indicating copy to clipboard operation
eslint-plugin-react-native copied to clipboard

Rule request: Pressable component usage only, no TouchableOpacity, Touchable* components

Open taylorkline opened this issue 3 years ago • 0 comments

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.

taylorkline avatar Jun 30 '21 18:06 taylorkline