-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.tsx
More file actions
133 lines (114 loc) · 3.44 KB
/
Copy pathApp.tsx
File metadata and controls
133 lines (114 loc) · 3.44 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
// import React from 'react';
// import { View, StyleSheet, StatusBar, ScrollView } from 'react-native';
// import Table from './components/Table';
// const salesData = [
// { id: 1, productName: 'Product A', price: 49.99 },
// { id: 2, productName: 'Product B', price: 59.99 },
// { id: 3, productName: 'Product C', price: 59.99 },
// { id: 4, productName: 'Product D', price: 59.99 },
// { id: 5, productName: 'Product E', price: 59.99 },
// ];
// const App = () => {
// return (
// <View style={styles.container}>
// {/* <StatusBar barStyle="dark-content" backgroundColor= "#007bff" /> */}
// <StatusBar barStyle="dark-content" backgroundColor= "#FF0060" />
// <View style={styles.taskbar} />
// <View style={styles.statusBarPlaceholder} />
// <ScrollView contentContainerStyle={styles.scrollViewContent}>
// <Table data={salesData} />
// </ScrollView>
// </View>
// );
// };
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// backgroundColor: '#ffffff',
// },
// statusBarPlaceholder: {
// height: StatusBar.currentHeight,
// backgroundColor: '#ffffff',
// },
// scrollViewContent: {
// flexGrow: 1,
// padding: 16,
// },
// taskbar: {
// backgroundColor: '#FF0060', //#FF0060 #007bff
// height: 60,
// },
// });
// export default App;
// import React from 'react';
// import { View, Button, StyleSheet, StatusBar } from 'react-native';
// import Overlay from './components/Overlay';
// import CustoomButton from './components/CustoomButton';
// const App = () => {
// const [showForm, setShowForm] = React.useState(false);
// const handleSubmitForm = (formData: any) => {
// // Handle form submission and data here
// console.log('Form Data:', formData);
// setShowForm(false);
// };
// return (
// <View style={styles.container}>
// <StatusBar barStyle="dark-content" backgroundColor= "#007bff" />
// {/* <View style={styles.taskbar} /> */}
// {/* <Button title="Open Form" onPress={() => setShowForm(true)} /> */}
// <CustoomButton title="Open Form" onPress={() => setShowForm(true)}/>
// <Overlay
// visible={showForm}
// onClose={() => setShowForm(false)}
// onSubmit={handleSubmitForm}
// />
// </View>
// );
// };
// const styles = StyleSheet.create({
// container: {
// flex: 1,
// justifyContent: 'center',
// alignItems: 'center',
// backgroundColor: '#ffffff',
// },
// taskbar: {
// backgroundColor: '#007bff', //#FF0060 #007bff
// height: 60,
// },
// });
// export default App;
import React from 'react';
import { View, Text, StyleSheet } from 'react-native';
import Header from './components/Header';
const ProductDetailsScreen = () => {
const handleBack = () => {
// Handle the back button press
};
const handleRightIconPress = () => {
// Handle the press of the right icon
};
return (
<View style={styles.container}>
<Header
title="Product Details"
onBack={handleBack}
showBackButton
rightIcon={<Text style={styles.iconText}>Icon</Text>}
onRightIconPress={handleRightIconPress}
/>
{/* Add your product details content here */}
</View>
);
};
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#ffffff',
},
iconText: {
color: '#fff',
fontSize: 16,
},
});
export default ProductDetailsScreen;