fix all buttons

This commit is contained in:
ammarahm-ed
2020-09-09 11:10:35 +05:00
parent a02c6c502e
commit 5ac90dc100
14 changed files with 441 additions and 695 deletions

View File

@@ -3,11 +3,11 @@ import {
ActivityIndicator,
StyleSheet,
Text,
View,
TouchableOpacity,
View
} from 'react-native';
import {SIZE, pv, ph, WEIGHT, opacity} from '../../common/common';
import {useTracked} from '../../provider';
import { ph, pv, SIZE, WEIGHT } from '../../common/common';
import { useTracked } from '../../provider';
import { Button } from '../Button';
export const Loading = ({
height = 150,
@@ -31,18 +31,10 @@ export const Loading = ({
]}>
{doneText}
</Text>
<TouchableOpacity
activeOpacity={opacity}
<Button
onPress={onDone}
style={[
styles.button,
{
borderColor: colors.accent,
backgroundColor: colors.accent,
},
]}>
<Text style={styles.buttonText}>Close</Text>
</TouchableOpacity>
title="Done"
/>
</>
) : (
<>