React native UI example/template. Blog post ui screen

React Native example/template, Blog post ui screen! . 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 from 'react';
import { View, Text, Image, StyleSheet } from 'react-native';

const post = {
  id: 1,
  title: 'Blog post title',
  image: 'https://www.bootdey.com/image/280x280/00BFFF/000000',
  author: 'Jane Doe',
  date: 'January 1, 2020',
  content: 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin ornare magna eros, eu pellentesque tortor vestibulum ut. Maecenas non massa sem. Etiam finibus odio quis feugiat facilisis.',
};

const BlogPostScreen = () => {
  return (
    <View style={styles.container}>
      <Text style={styles.title}>{post.title}</Text>
      <View style={styles.meta}>
        <Text style={styles.author}>by {post.author}</Text>
        <Text style={styles.date}>{post.date}</Text>
      </View>
      <Image source={{ uri: post.image }} style={styles.image} />
      <Text style={styles.content}>{post.content}</Text>
    </View>
  );
};

const styles = StyleSheet.create({
  container: {
    marginTop:60,
    padding: 20,
  },
  title: {
    fontSize: 24,
    fontWeight: 'bold',
    marginBottom: 10,
  },
  meta: {
    flexDirection: 'row',
    marginBottom: 20,
  },
  author: {
    fontSize: 14,
    color: '#999',
    marginRight: 10,
  },
  date: {
    fontSize: 14,
    color: '#999',
  },
  image: {
    width: '100%',
    height: 200,
    marginBottom: 20,
  },
  content: {
    fontSize: 16,
    marginTop: 20,
  },
});

export default BlogPostScreen;

                                            

Similar snippets

About this react-native template

This react-native template, Blog post ui screen, was published on Dec 31st 2022, 10:52 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 3.1K 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.