MK
Size: a a a
MK
MK
MK
ΓΧ
..
..
MK
..
MK
IZ
..
MK
А
export default class ResPartnersStack extends React.Component {
render() {
return (
<Stack.Navigator initialRouteName="ResPartnersScreen">
<Stack.Screen name="ResPartnersFormScreen" component={ResPartnersFormScreen} options={{
title: 'Form',
headerRight: () => (
<View
style={{
flexDirection: "row",
justifyContent: "space-between",
width: 30,
marginRight: 10,
}}
>
<TouchableOpacity
onPress={() => {
console.log(this)
// ВОТ ТУТ ВЫЗВАТЬ ФУНКЦИЮ ИЗ ResPartnersFormScreen
this.props.createMailChannel()}}
title="Add chat"
color="#4C91DF"
>
<Icon type='Ionicons' name="chatbubble-outline" size={28} color="black" style={{color:'#4C91DF'}}/>
</TouchableOpacity>
</View>
)
}}/>
<Stack.Screen name="ResPartnersScreen" component={ResPartnersScreen} options={{ title: 'Contacts' }}/>
</Stack.Navigator>
);
}
}CS
ГФ
И
ВП