How do you render a textInput conditionally such that when the value text in the textInput characters is less than 6, it logs an error when the user clicks the ok button
const [text, setText] = useState('')
<TextInput
style={styles.textInputStyle}
value={text}
onChangeText = {(text) => setText(text)}
placeholder="Text"
placeholderTextColor="#60605e" />
<TouchableOpacity style={styles.button}
onPress={() => {setText(text)} }>
<Text style={styles.buttonTitle}>OK</Text>
</TouchableOpacity>
pricealert?{myBool && <div>smth</div>}onPresshandler needs to check thetextlength and log the error iftext.length < 6.