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.2KB

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