React native UI example/template. list of blog posts

React Native example/template, list of blog posts! . 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!

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

export default Blog = () => {
  const data = [
    {
      id: 1,
      title: 'Lorem ipsum dolor',
      time: '2018-08-01 12:15 pm',
      image: 'https://bootdey.com/image/400x200/FFB6C1/000000',
      description: 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean  ligula...',
    },
    {
      id: 2,
      title: 'Sit amet, consectetuer',
      time: '2018-08-12 12:00 pm',
      image: 'https://bootdey.com/image/400x200/7B68EE/000000',
      description: 'Lorem  dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula...',
    },
    {
      id: 3,
      title: 'Dipiscing elit. Aenean ',
      time: '2017-08-05 12:21 pm',
      image: 'https://bootdey.com/image/400x200/000080/000000',
      description: 'Lorem ipsum dolor sit , consectetuer  elit. Aenean commodo ligula...',
    },
    {
      id: 4,
      title: 'Commodo ligula eget dolor.',
      time: '2015-08-12 12:00 pm',
      image: 'https://bootdey.com/image/400x200/48D1CC/000000',
      description:
        'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula...',
    },
    {
      id: 5,
      title: 'Aenean massa. Cum sociis',
      time: '2013-06-12 12:11 pm',
      image: 'https://bootdey.com/image/400x200/9370DB/000000',
      description: 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit.  commodo ligula...',
    },
    {
      id: 6,
      title: 'Natoque penatibus et magnis',
      time: '2018-08-12 12:56 pm',
      image: 'https://bootdey.com/image/400x200/DA70D6/000000',
      description: 'Lorem ipsum  sit amet, consectetuer adipiscing elit. Aenean commodo ligula...',
    },
    {
      id: 7,
      title: 'Dis parturient montes, nascetur',
      time: '2018-08-12 12:33 pm',
      image: 'https://bootdey.com/image/400x200/DDA0DD/000000',
      description:
        'Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula...',
    },
    {
      id: 8,
      title: 'Ridiculus mus. Donec quam',
      time: '2018-06-12 12:44 pm',
      image: 'https://bootdey.com/image/400x200/4169E1/000000',
      description: 'Lorem ipsum  sit amet, consectetuer adipiscing elit.  commodo ligula...',
    },
    {
      id: 9,
      title: 'Felis, ultricies nec, pellentesque',
      time: '2012-07-12 12:23 pm',
      image: 'https://bootdey.com/image/400x200/FA8072/000000',
      description: 'Lorem ipsum dolor sit amet, consectetuer  elit. Aenean commodo ligula...',
    },
  ]

  const [posts, setPosts] = useState(data)

  return (
    <View style={styles.container}>
      <FlatList
        style={styles.list}
        data={posts}
        keyExtractor={item => {
          return item.id
        }}
        ItemSeparatorComponent={() => {
          return <View style={styles.separator} />
        }}
        renderItem={post => {
          const item = post.item
          return (
            <View style={styles.card}>
              <Image style={styles.cardImage} source={{ uri: item.image }} />
              <View style={styles.cardHeader}>
                <View>
                  <Text style={styles.title}>{item.title}</Text>
                  <Text style={styles.description}>{item.description}</Text>
                  <View style={styles.timeContainer}>
                    <Image
      
//LOGIN TO SEE THE REST OF THE CODE                ======{======.========}
                      ======={{ ===: '=====://===.======.===/=====/==/======/========.===' }}
                    />
                    <==== ======{======.====}>{====.====}</====>
                  </====>
                </====>
              </====>
              <==== ======{======.==========}>
                <==== ======{======.==================}>
                  <==== ======{======.================}>
                    <================ ======{======.===============}>
                      <=====
                        ======{======.====}
                        ======={{ ===: '=====://===.======.===/========/==/======/=======.===' }}
                      />
                      <==== ======{======.==============}>==</====>
                    </================>
                  </====>
                  <==== ======{======.================}>
                    <================ ======{======.===============}>
                      <=====
                        ======{======.====}
                        ======={{ ===: '=====://===.======.===/===-======/==/======/========.===' }}
                      />
                      <==== ======{======.==============}>==</====>
                    </================>
                  </====>
                </====>
              </====>
            </====>
          )
        }}
      />
    </====>
  )
}

===== ====== = ==========.======({
  =========: {
    ====: =,
    =========: ==,
  },
  ====: {
    =================: ==,
    ===============: '#======',
  },
  =========: {
    =========: ==,
  },
  /******** ==== **************/
  ====: {
    ===========: '#========',
    ============: {
      =====: =,
    },
    =============: =.=,
    ============: =,
    ==============: =,
    ===============: '=====',
  },
  ==========: {
    ===============: ==,
    =================: ==,
    ===================: =,
    ====================: =,
    =============: '===',
    ==============: '=====-=======',
  },
  ===========: {
    ===============: ==.=,
    =================: ==,
  },
  ==========: {
    =============: '===',
    ==============: '=====-=======',
    ==========: ==.=,
    =============: ==,
    =================: ==,
    ======================: =,
    =======================: =,
    ===============: '#======',
  },
  =========: {
    ====: =,
    ======: ===,
    =====: ====,
  },
  /******** ==== ========== **************/
  =====: {
    ========: ==,
    ====: =,
  },
  ===========: {
    ========: ==,
    =====: '#===',
    ====: =,
    =========: =,
    ============: =,
  },
  ====: {
    ========: ==,
    =====: '#======',
    =========: =,
  },
  ====: {
    =====: ==,
    ======: ==,
  },
  ========: {
    =====: ==,
    ======: ==,
    =========: =,
    ===========: =,
  },
  =============: {
    =============: '===',
  },
  /******** ====== === ******************/
  ==================: {
    ==============: '======',
    ==========: '======',
    =============: '===',
    ====: =,
  },
  ================: {
    ==============: '======',
    =============: '===',
    ====: =,
  },
  ==============: {
    ==========: =,
    =========: '====-===',
    ==============: '======',
  },
  ===============: {
    =============: '===',
    ==============: '======',
    ==========: '======',
  },
})

                                            

Similar snippets

About this react-native template

This react-native template, list of blog posts, was published on Nov 29th 2017, 18:03 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 6.4K 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.