Git Product home page Git Product logo

live-uber-eats-clone-youtube's Introduction

My Universal React Project

Supports Expo iOS Supports Expo Android Supports Expo Web

๐Ÿš€ How to use

  • Install packages with yarn or npm install.
    • If you have native iOS code run npx pod-install
  • Run yarn start to start the bundler.
  • Open the project in a React runtime to try it:

Adding Native Code

This project can be run from a web browser or the Expo client app. You may find that you want to add more native code later on. You can do this by ejecting the project and rebuilding it yourself.

  • Run yarn eject to create the native projects.
  • You can still run your project in the web browser or Expo client, you just won't be able to access any new native modules you add.

Publishing

  • Deploy the native app to the App store and Play store using this guide: Deployment.
  • Deploy the website using this guide: Web deployment.

๐Ÿ“ Notes

live-uber-eats-clone-youtube's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

live-uber-eats-clone-youtube's Issues

peerDependencies Issue

This repository was started long back and i think it is no longer been maintained and because of this when you install the modules it wont work as everything is supported and linked anymore. PLEASE revert if I am wrong...

Bouncycheckbox component

Does anyone know how to fix my error cause whenever I click the check box the details should show in my terminal. Is there anyone that knows how to fix it?
Here is my code.

 import { View, Text, StyleSheet, Image, ScrollView } from "react-native";
import React from "react";
import { CheckBox, Divider } from "react-native-elements";
 import BouncyCheckbox from "react-native-bouncy-checkbox";
 import { useDispatch } from "react-redux";

const foods = [
  {
      title: "Lasagna",
      description: "With butter lettuce, tomato and sauce bechamel",
      price: "$13.50",
      image:
        "https://www.modernhoney.com/wp-content/uploads/2019/08/Classic-Lasagna-14-scaled.jpg",
  },
  {
      title: "Tandoori Chicken",
      description:
        "Amazing Indian dish with tenderloin chicken off the sizzles ๐Ÿ”ฅ",
      price: "$19.20",
      image: "https://i.ytimg.com/vi/BKxGodX9NGg/maxresdefault.jpg",
  },
  {
      title: "Chilaquiles",
      description:
        "Chilaquiles with cheese and sauce. A delicious mexican dish ๐Ÿ‡ฒ๐Ÿ‡ฝ",
      price: "$14.50",
      image:
        "https://i2.wp.com/chilipeppermadness.com/wp-content/uploads/2020/11/Chilaquales-Recipe-Chilaquiles-Rojos-1.jpg",
  },
  {
      title: "Chicken Caesar Salad",
      description:
        "One can never go wrong with a chicken caesar salad. Healthy option with greens and proteins!",
      price: "$21.50",
      image:
        "https://images.themodernproper.com/billowy-turkey/production/posts/2019/Easy-italian-salad-recipe-10.jpg?w=1200&h=1200&q=82&fm=jpg&fit=crop&fp-x=0.5&fp-y=0.5&dm=1614096227&s=c0f63a30cef3334d97f9ecad14be51da",
  },
  {
      title: "Lasagna",
      description: "With butter lettuce, tomato and sauce bechamel",
      price: "$13.50",
      image:
        "https://thestayathomechef.com/wp-content/uploads/2017/08/Most-Amazing-Lasagna-2-e1574792735811.jpg",
  },
];

 const styles = StyleSheet.create({
   menuItemStyle: {
     flexDirection: "row",
     justifyContent: "space-between",
     margin: 20,
   },

   titleStyle: {
     fontSize: 19,
     fontWeight: "600",
   },
 });

export default function MenuItems({ restauantName }) {
  const dispatch = useDispatch();

  const selectItem = (item, checkboxValue) =>
     dispatch({
       type: "ADD_TO_CART",
       payload: { 
         ...item, 
         restauantName: restauantName, 
         checkboxValue: checkboxValue, 
       },
     });

   return (
     <ScrollView showsVerticalScrollIndicator={false}>
      {foods.map((food,index) => (
        <View key={index} style={{ backgroundColor: "white" }} >
           <View style={styles.menuItemStyle}>
               <BouncyCheckbox
                 innerIconStyle={{ borderColor: "lightgray", borderRadius: 0, }}
                 fillColor="green"
                 onPress={(checkboxValue) => selectItem(food)}
                />
             <FoodInfo food={food} />
            <FoodImage food={food} />
           </View>
           <Divider
             width={0.5}
             orientation="vertical"
             style={{ marginHorizontal: 20 }}
           />
         </View>
       ))}
     </ScrollView>
   );
 }

 const FoodInfo = (props) => (
   <View style={{ width: 240, justifyContent: "space-evenly" }}>
     <Text style={styles.titleStyle}>{props.food.title}</Text>
     <Text>{props.food.description}</Text>
     <Text>{props.food.price}</Text>
   </View>
 );

const FoodImage = (props) => (
   <View>
     <Image
       source={{ uri: props.food.image }}
       style={{
         width: 100,
         height: 100,
         borderRadius: 8,
       }}
     />
   </View>
 );

MenuItem33

MenuItems scrollview bug

when i run this project in my android emulator,view can't be scrolled and show other items.the viewcart button also not appear.
I wonder this may be caused by react-native version or food images component?
As i comment the food image,at least viewcart button will appear,but still can not scroll up and down.(see figure)
1

code

Can anyone help meI tried rewriting the code that didn't work so what should I do???
Simulator Screen Shot - iPhone 12 mini - 2022-08-23 at 15 44 20

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.