Intellicode / eslint-plugin-react-native

React Native plugin for ESLint
MIT License
722 stars 130 forks source link

Rule to warn about styles such as `textAlignVertical` that aren't multi platform (it doesn't support iOS) #318

Closed SrBrahma closed 2 years ago

SrBrahma commented 2 years ago

I got surprised now to know that textAlignVertical don't support iOS. Found it on a on-prod app of mine. Not a big deal, but I wish I knew this before.

It would be useful to have a rule to warn about at least this style, and to recommend to use a wrapping View with justifyContent: 'center'.

SrBrahma commented 2 years ago

Closing as textAlignVertical is sometimes useful due to how different Android handles the alignment.