React native UI example/template. Invoice with logo and styled items

React Native example/template, Invoice with logo and styled items! . 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. Invoice with logo and styled items

Invoice with logo and styled items

import React from 'react';
import { StyleSheet, View, Text, Image, Button } from 'react-native';

const Invoice = () => {

  const invoiceData = {
    invoiceNumber: '12345',
    invoiceDate: '01/01/2022',
    dueDate: '01/15/2022',
    amountDue: '$100.00',
    client: {
      name: 'John Doe',
      address: '123 Main St\nAnytown, USA 12345',
      logo: 'https://www.bootdey.com/image/280x280/FF00FF/000000',
    },
    items: [
      {
        id: 1,
        description: 'Item 1',
        quantity: 2,
        price: '$50.00',
      },
      {
        id: 2,
        description: 'Item 2',
        quantity: 1,
        price: '$25.00',
      },
      {
        id: 3,
        description: 'Item 3',
        quantity: 3,
        price: '$25.00',
      },
    ],
  };

  const {
    invoiceNumber,
    invoiceDate,
    dueDate,
    amountDue,
    client,
    items,
  } = invoiceData;

  return (
    <View style={styles.container}>
      <View style={styles.header}>
        <Image
          style={styles.logo}
          source={{uri:'https://www.bootdey.com/image/280x280/FF00FF/000000'}}
        />
        <Text style={styles.headerText}>INVOICE</Text>
      </View>
      <View style={styles.clientInfo}>
        <View style={styles.clientText}>
          <Text style={styles.label}>Client:</Text>
          <Text style={styles.value}>{client.name}</Text>
          <Text style={styles.value}>{client.address}</Text>
        </View>
      </View>
      <View style={styles.body}>
        <Text style={styles.label}>Invoice Number:</Text>
        <Text style={styles.value}>{invoiceNumber}</Text>
        <Text style={styles.label}>Invoice Date:</Text>
        <Text style={styles.value}>{invoiceDate}</Text>
        <Text style={styles.label}>Due Date:</Text>
        <Text style={styles.value}>{dueDate}</Text>
        <Text style={styles.label}>Amount Due:</Text>
        <Text style={styles.value}>{amountDue}</Text>
      </View>
      <View style={styles.itemsContainer}>
        <Text style={styles.itemsHeader}>Items:</Text>
        {items.map((item, index) => {
          const isEven = index % 2 === 0;
          return (
            <View
              key={it
//LOGIN TO SEE THE REST OF THE CODE==.==}
              ======{[
                ======.=======,
                ====== ? ======.=========== : ======.==========,
              ]}
            >
              <==== ======{======.===============}>{====.===========}</====>
              <==== ======{======.============}>{====.========}</====>
              <==== ======{======.=========}>{====.=====}</====>
            </====>
          );
        })}
      </====>
      <==== ======{======.=======}>
        <======
          ======{======.======}
          ======"====="
          ========{() => =======.===('=====')}
        />
        <======
          ======{======.======}
          ======"===="
          ========{() => =======.===('====')}
        />
      </====>
    </====>
  );
};

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


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


                                            

Similar snippets

About this react-native template

This react-native template, Invoice with logo and styled items, was published on Jan 4th, 22:14 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.3K 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.