This commit is contained in:
2023-10-15 06:37:46 +03:00
parent 67258c8114
commit 4f25112b5e
70 changed files with 482 additions and 64 deletions

View File

@@ -7,16 +7,19 @@ import DText from "../DText/DText";
type Props = {
label: string;
style?: StyleProp<ViewStyle>;
containerStyle?: StyleProp<ViewStyle>;
isUnset?: boolean;
onPress?: (event: GestureResponderEvent) => void
};
const BasicButton: FC<Props> = ({label, onPress, style, isUnset = false}) => {
const BasicButton: FC<Props> = ({label, onPress, containerStyle, style, isUnset = false}) => {
return (
<TouchableOpacity onPress={onPress}>
<View style={[styles.container, style]}>
<DText style={styles.text}>{label}</DText>
</View>
<View style={[styles.container, style]}>
<DText style={styles.text}>{label}</DText>
</View>
</TouchableOpacity>
);
};