ネイティブに反応する新しいです。私はエラーがあるときTextInputのスタイリングを変更しようとしています。リアクションネイティブスタイリング(条件付き)
私のコードを醜いものにすることはできますか?
<TextInput
style={touched && invalid?
{height: 40, backgroundColor: 'white', borderRadius: 5, padding: 10, borderWidth: 2, borderColor: 'red'} :
{height: 40, backgroundColor: 'white', borderRadius: 5, padding: 10}}
</TextInput>
これはよさそうだ、ありがとう! –