You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

status.jsx 3.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. import React, { useState } from 'react';
  2. import { View, StyleSheet, TextInput, Text, ScrollView, Image } from 'react-native';
  3. import { Appbar, Menu, Avatar, IconButton, useTheme, Button } from 'react-native-paper';
  4. import { useRouter } from 'expo-router';
  5. import Icon from 'react-native-vector-icons/MaterialIcons';
  6. import burgerImage from "@/assets/images/burger.png";
  7. import dpuser from "@/assets/images/userdp.png";
  8. import { Link } from 'expo-router';
  9. const Status = () => {
  10. const { colors, fonts } = useTheme();
  11. const [menuVisible, setMenuVisible] = useState(false);
  12. const [searchInput, setSearchInput] = useState("")
  13. const router = useRouter();
  14. return (
  15. <View style={[styles.container, { backgroundColor: colors.background }]}>
  16. <Appbar.Header>
  17. <Link href={"/(tabs)/home"}>
  18. <IconButton
  19. icon="chevron-left"
  20. iconColor={colors.secondary}
  21. size={24}
  22. />
  23. </Link>
  24. <View style={styles.titleContainer}>
  25. <Appbar.Content title="Status" titleStyle={[fonts.titleLarge, styles.title]} />
  26. </View>
  27. <Icon
  28. name="search" //used as offset
  29. size={40}
  30. color="#FFF"
  31. />
  32. </Appbar.Header>
  33. <View style={{ flex: 1 }}>
  34. <View style={{ alignItems: "center", marginBottom: 20 }}>
  35. <Text style={[fonts.titleLarge, { color: colors.secondary, fontWeight: "bold" }]}>Abang Bob Burger</Text>
  36. <Text style={[fonts.titleMedium, { color: colors.secondary, fontWeight: "bold" }]}>No ID : BobBurgerBangi</Text>
  37. </View>
  38. <Image source={burgerImage} style={styles.itemImage}></Image>
  39. <Text style={[fonts.titleLarge, { fontWeight: "bold", marginBottom: 20 }]}>Notification</Text>
  40. <View style={{ flex: 1, flexDirection: "row", gap: 10 }}>
  41. <Avatar.Image size={60} source={burgerImage} style={{ backgroundColor: "rgba(0,0,0,0.2)" }}></Avatar.Image>
  42. <View style={{ width: "80%" }}>
  43. <View style={{ backgroundColor: "white", borderWidth: 1, borderColor: colors.secondary, borderRadius: 20, padding: 20, marginBottom: 5 }}>
  44. <Text style={[fonts.titleMedium, { fontWeight: "bold", marginBottom: 20 }]}>
  45. Order Ready for Pick Up
  46. </Text>
  47. <Text style={[fonts.titleSmall, { fontWeight: "bold" }]}>
  48. Your order for Burger Ayam Special is now ready for pick up. Please pick up in 15 minutes as we are preparing for closing soon.
  49. </Text>
  50. </View>
  51. <Text style={[fonts.titleSmall, { fontWeight: "bold", marginLeft: "auto", color: "rgba(0,0,0,0.4)" }]}>
  52. 11/2/2024 10:52PM
  53. </Text>
  54. </View>
  55. </View>
  56. <Button mode='contained' style={{ paddingHorizontal: 35, borderColor: colors.primary }} onPress={() => router.push('/(tabs)/home')}>Back</Button>
  57. </View>
  58. </View>
  59. );
  60. };
  61. const styles = StyleSheet.create({
  62. itemImage: {
  63. marginLeft: "auto",
  64. marginRight: "auto",
  65. marginBottom: 20
  66. },
  67. container: {
  68. flex: 1,
  69. padding: 20,
  70. width: '100%',
  71. },
  72. badge: {
  73. backgroundColor: "#BB5C3F",
  74. color: "#FFF",
  75. borderRadius: 100,
  76. paddingVertical: 4,
  77. paddingHorizontal: 6,
  78. fontSize: 10,
  79. fontWeight: "400",
  80. verticalAlign: "middle",
  81. marginStart: 5
  82. },
  83. titleContainer: {
  84. flex: 1,
  85. alignItems: 'center',
  86. },
  87. title: {
  88. fontWeight: 'bold',
  89. }
  90. });
  91. export default Status;