React native UI example/template. Restaurant product list with image, name, description, price and action buttons

React Native example/template, Restaurant product list with image, name, description, price and action buttons! . Take a look at this UI example and see how it can enhance your project. You can copy or download the code and use it in your project. Don't forget to browse our library of other free React Native templates for even more design and functionality inspiration. Happy coding!

React native template. Restaurant product list with image, name, description, price and action buttons

Restaurant product list with image, name, description, price and action buttons

import React, { useState } from 'react';
import { StyleSheet, View, Text, Image, TouchableOpacity, FlatList } from 'react-native';


const ProductCard = ({ item, onIncrement, onDecrement }) => {
  return (
    <View style={styles.productCard}>
      <Image source={{ uri: item.image }} style={styles.productImage} />
      <View style={styles.productInfo}>
        <Text style={styles.productName}>{item.name}</Text>
        <Text style={styles.productDescription}>{item.description}</Text>
        <Text style={styles.productPrice}>${item.price.toFixed(2)} <Text style={styles.productPriceText}>per item</Text></Text>
      </View>
      <View style={styles.productAmount}>
        <TouchableOpacity style={styles.amountButton} onPress={onDecrement}>
          <Text style={styles.amountButtonText}>-</Text>
        </TouchableOpacity>
        <Text style={styles.amountText}>{item.amount}</Text>
        <TouchableOpacity style={styles.amountButton} onPress={onIncrement}>
          <Text style={styles.amountButtonText}>+</Text>
        </TouchableOpacity>
      </View>
    </View>
  );
};

const App = () => {
  const [products, setProducts] = useState([
    { id: 1, name: 'Hamburger', description: 'Juicy beef patty on a fresh bun with all the fixings', price: 5.99, image: 'https://source.unsplash.com/900x900/?burger', amount: 0 },
    { id: 2, name: 'Pizza', description: 'Freshly made pizza with your choice of toppings', price: 9.99, image: 'https://source.unsplash.com/900x900/?pizza', amount: 0 },
    { id: 3, name: 'Salad', description: 'Fresh greens and veggies with your choice of dressing', price: 4.99, image: 'https://source.unsplash.com/900x900/?salad', amount: 0 },
    { id: 4, name: 'Fries', description: 'Crispy and delicious, perfect as a side or on their own', price: 2.99, image: 'https://source.unsplash.com/900x900/?fries', amount: 0 },
    { id: 5, name: 'Ice Cream', description: 'Rich and creamy, the perfect dessert any time of day', price: 3.99, image: 'https://source.unsplash.com/900x900/?icecream', amount: 0 },
    
    { id: 6, name: 'Big Hamburger', description: 'Juicy beef patty on a fresh bun with all the fixings', price: 5.99, image: 'https://source.unsplash.com/900x900/?burger', amount: 0 },
    { id: 7, name: 'Big Pizza ', description: 'Freshly made pizza with your choice of toppings', price: 9.99, image: 'https://source.unsplash.com/900x900/?pizza', amount: 0 },
    { id: 8, name: 'Big Salad', description: 'Fresh greens and veggies with your choice of dressing', price: 4.99, image: 'https://source.unsplash.com/900x900/?salad', amount: 0 },
    { id: 9, name: 'Big Fries', description: 'Crispy and delicious, perfect as a side or on their own', price: 2.99, image: 'https://source.unsplash.com/900x900/?fries', amount: 0 },
    { id: 10, name: 'Big Ice Cream', description: 'Rich and creamy, the perfect dessert any time of day', price: 3
//LOGIN TO SEE THE REST OF THE CODE.==, =====: '=====://======.========.===/=======/?========', ======: = },
  ]);

  ===== =============== = (====) => {
    ===========(
      ========.===((=======) =>
        =======.== === ====.== ? { ...=======, ======: =======.====== + = } : =======
      )
    );
  };

  ===== =============== = (====) => {
    ===========(
      ========.===((=======) =>
        =======.== === ====.== ? { ...=======, ======: ====.===(=, =======.====== - =) } : =======
      )
    );
  };

  ===== ================= = ({ ==== }) => (
    <=========== ====={====} ============{() => ===============(====)} ============{() => ===============(====)} />
  );

  ====== (
    <==== ======{======.=========}>
      <========
        ====={========}
        ======{======.===========}
        ==========={=================}
        ============={(====) => ====.==.========()}
        ======================{{ =================: ==, =============: === }}
      />
      <================ ======{======.==============}>
        <==== ======{======.==================}>========</====>
      </================>
    </====>
  );
};

===== ====== = ==========.======({
  =========: {
    ====: =,
    ===============: '#======',
    ==========:==,
  },
  ===========: {
    ====: =,
    ==========: ==,
  },
  ===========: {
    =============: '===',
    ==============: '=====-=======',
    ==========: '======',
    ===============: '#===',
    ============: =,
    ===========: '#===',
    =============: =.=,
    ============: { =====: =, ======: = },
    ============: =,
    =======: ==,
    ============: ==,
  },
  ============: {
    =====: ==,
    ======: ==,
    ============: ==,
    ===========: ==,
  },
  ===========: {
    ====: =,
    ===========: ==,
  },
  ===========: {
    ========: ==,
    ==========: '====',
    ============: =,
  },
  ==================: {
    ========: ==,
    =====: '#===',
    ============: =,
  },
  ============: {
    ========: ==,
    ==========: '====',
    =====: '#======',
  },
  ================: {
    ========: ==,
    ==========: '======',
    =====: '#===',
  },
  =============: {
    =============: '===',
    ==========: '======',
  },
  ============: {
    =====: ==,
    ======: ==,
    ===============: '#======',
    ============: ==,
    ==============: '======',
    ==========: '======',
  },
  ================: {
    =====: '#===',
    ========: ==,
  },
  ==========: {
    ========: ==,
    ==========: '====',
    ================: ==,
  },
  ==============: {
    ========: '========',
    ======: ==,
    ====: ==,
    =====: ==,
    ===============: '#======',
    ============: =,
    =======: ==,
    ==========: '======',
  },
  ==================: {
    =====: '#===',
    ========: ==,
    ==========: '====',
  },
});

====== ======= ===;

                                            

About this react-native template

This react-native template, Restaurant product list with image, name, description, price and action buttons, was published on May 16th 2023, 12:10 by Bootdey Admin and it is free.

We hope you will enjoy this awesome react-native template and stay tuned for the latest updates, we believe it will save your precious time and gives trendy look to your next application.

This template currectly have 2.8K views, Using this react-native template you have the following benefits:

Example Screens

You can jump start your development with our pre-built example, all you need to do is copy the code and execute it, You can also show it to your customers so that they have an idea of the final result.

Cross-platform for mobile development

This template was developed for Android and iOS.

Simple Integration

This template can be simply integrated on existing projects and new ones too, all you need to do is copy the code and start working.

Fully coded view

this is a functional example, You will save a lot of time going from prototyping to full-functional code.