R
<Controller
control={control}
render={()=> (
<TouchableOpacity
style={[
styles.selectItem,
{ borderBottomColor: colors.border, borderBottomWidth: 1 },
]}
onPress={() => {
navigation.navigate('StationList', { applicationNumber: 5 });
}}>
<Text body1> {stationName}</Text>
<View
style={{
flexDirection: 'row',
alignItems: 'center',
}}>
{!stationName && <Text body1 grayColor>
Выберите значение
</Text>}
<Icon
name="angle-right"
size={18}
color={colors.primary}
style={{ marginLeft: 5 }}
enableRTL={true}
/>
</View>
</TouchableOpacity>
)}
defaultValue=""
rules={{ required: true }}
name="stationName"
/>
{errors.stationName && <Text style={styles.errors}>Выберите значение</Text>}