Implement scan MVP flow

This commit is contained in:
2026-07-01 10:33:17 +02:00
parent 86612fbbca
commit 9caa6b05ad
34 changed files with 2318 additions and 70 deletions
+15 -5
View File
@@ -1,16 +1,20 @@
import { Pressable, StyleSheet, Text } from 'react-native';
export default function PrimaryButton({ label, onPress }) {
import { colors } from '../utils/constants';
export default function PrimaryButton({ label, onPress, disabled = false }) {
return (
<Pressable
accessibilityRole="button"
disabled={disabled}
onPress={onPress}
style={({ pressed }) => [
styles.button,
pressed ? styles.buttonPressed : null
pressed ? styles.buttonPressed : null,
disabled ? styles.disabled : null
]}
>
<Text style={styles.label}>{label}</Text>
<Text style={[styles.label, disabled ? styles.disabledLabel : null]}>{label}</Text>
</Pressable>
);
}
@@ -18,7 +22,7 @@ export default function PrimaryButton({ label, onPress }) {
const styles = StyleSheet.create({
button: {
alignItems: 'center',
backgroundColor: '#256f5b',
backgroundColor: colors.primary,
borderRadius: 8,
paddingHorizontal: 20,
paddingVertical: 14
@@ -27,8 +31,14 @@ const styles = StyleSheet.create({
opacity: 0.82
},
label: {
color: '#ffffff',
color: colors.surface,
fontSize: 16,
fontWeight: '700'
},
disabled: {
backgroundColor: colors.border
},
disabledLabel: {
color: colors.muted
}
});