2020-09-27 13:05:26 +05:00
|
|
|
import React from 'react';
|
|
|
|
|
import {StyleSheet, Text, View} from 'react-native';
|
|
|
|
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
|
|
|
import {useTracked} from '../../provider';
|
|
|
|
|
import {Button} from '../Button';
|
|
|
|
|
|
|
|
|
|
const DialogButtons = ({
|
|
|
|
|
onPressPositive,
|
|
|
|
|
onPressNegative,
|
|
|
|
|
positiveTitle,
|
|
|
|
|
negativeTitle = 'Cancel',
|
|
|
|
|
}) => {
|
|
|
|
|
return (
|
|
|
|
|
<View
|
|
|
|
|
style={styles.container}>
|
2020-10-01 17:23:04 +05:00
|
|
|
|
|
|
|
|
<Button onPress={onPressNegative} grayed title={negativeTitle} />
|
2020-09-27 13:05:26 +05:00
|
|
|
<Button onPress={onPressPositive} title={positiveTitle} />
|
|
|
|
|
</View>
|
|
|
|
|
);
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export default DialogButtons;
|
|
|
|
|
|
|
|
|
|
const styles = StyleSheet.create({
|
|
|
|
|
container:{
|
|
|
|
|
justifyContent: 'space-around',
|
|
|
|
|
alignItems: 'center',
|
|
|
|
|
flexDirection: 'row',
|
|
|
|
|
marginTop: 20,
|
|
|
|
|
}
|
|
|
|
|
})
|