aboutsummaryrefslogtreecommitdiffstats
path: root/src/screens/MallSelectionScreen.js
blob: 964711ba82658cc246cbc0a15505ad12f2bc2f8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import React from 'react';
import { View, Button, Text, StyleSheet, TouchableOpacity } from 'react-native';

const MallSelectionScreen = ({ navigation }) => {
  const handleMallSelect = () => navigation.navigate('ProductScanner');

  return (
    <View style={styles.container}>
      <Text style={styles.title}>Select a Mall</Text>
      <TouchableOpacity style={styles.button} onPress={handleMallSelect}>
        <Text style={styles.buttonText}>Mall 1</Text>
      </TouchableOpacity>
      <TouchableOpacity style={styles.button} onPress={handleMallSelect}>
        <Text style={styles.buttonText}>Mall 2</Text>
      </TouchableOpacity>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    justifyContent: 'center',
    alignItems: 'center',
    backgroundColor: '#f2f2f2',
    padding: 16,
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
    color: '#333',
    marginBottom: 20,
  },
  button: {
    backgroundColor: '#4CAF50',
    paddingVertical: 12,
    paddingHorizontal: 30,
    borderRadius: 8,
    marginVertical: 10,
    elevation: 3,
  },
  buttonText: {
    fontSize: 18,
    color: '#ffffff',
    fontWeight: 'bold',
    textAlign: 'center',
  },
});

export default MallSelectionScreen;