React native UI example/template. calendar timeline screen

React Native example/template, calendar timeline 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, FlatList } from 'react-native';

const ScheduleScreen = () => {
  const classes = [
    {
      startTime: '09:00',
      endTime: '10:30',
      title: 'History of Physics',
      bgColor:'#E0FFFF',
      students: [
        { id: '1', name: 'John', avatar: 'https://bootdey.com/img/Content/avatar/avatar1.png' },
        { id: '2', name: 'Emily', avatar: 'https://bootdey.com/img/Content/avatar/avatar2.png' },
        { id: '3', name: 'Michael', avatar: 'https://bootdey.com/img/Content/avatar/avatar3.png' },
        { id: '4', name: 'Michael', avatar: 'https://bootdey.com/img/Content/avatar/avatar4.png' },
        { id: '5', name: 'Michael', avatar: 'https://bootdey.com/img/Content/avatar/avatar5.png' },
      ],
    },
    {
      startTime: '10:30',
      endTime: '11:00',
      title: 'History of Physics',
      bgColor:'#E6E6FA',
      students: [
        { id: '6', name: 'Sarah', avatar: 'https://bootdey.com/img/Content/avatar/avatar4.png' },
        { id: '7', name: 'David', avatar: 'https://bootdey.com/img/Content/avatar/avatar5.png' },
        { id: '8', name: 'Sophia', avatar: 'https://bootdey.com/img/Content/avatar/avatar6.png' },
      ],
    },
    {
      startTime: '11:00',
      endTime: '11:30',
      title: 'History of Physics',
      bgColor:'#FAF0E6',
      students: [
        { id: '9', name: 'Sarah', avatar: 'https://bootdey.com/img/Content/avatar/avatar1.png' },
        { id: '10', name: 'David', avatar: 'https://bootdey.com/img/Content/avatar/avatar2.png' },
        { id: '11', name: 'Sophia', avatar: 'https://bootdey.com/img/Content/avatar/avatar3.png' },
      ],
    },
    {
      startTime: '11:30',
      endTime: '12:30',
      title: 'History of Physics',
      bgColor:'#FAFAD2',
      students: [
        { id: '12', name: 'Sarah', avatar: 'https://bootdey.com/img/Content/avatar/avatar4.png' },
        { id: '13', name: 'David', avatar: 'https://bootdey.com/img/Content/avatar/avatar5.png' },
        { id: '14', name: 'Sophia', avatar: 'https://bootdey.com/img/Content/avatar/avatar6.png' },
      ],
    },
    // Add more classes as needed
  ];

  const renderClassItem = ({ item }) => (
    <View style={styles.classItem}>
      <View style={styles.timelineContainer}>
        <View style={styles.timelineDot} />
        <View style={styles.timelineLine} />
      </View>

      <View style={styles.classContent}>
        <View style={styles.classHours}>
          <Text style={styles.startTime}>{item.startTime}</Text>
          <Text style={styles.endTime}>{item.endTime}</Text>
        </View>

        <View style={[styles.card,{backgroundColor:item.bgColor}]}>
          <Text style={styles.cardTitle}>{item.title}</Text>
          <Text style={styles.cardDate}>24 March, 18pm - 19pm</Text>
          <FlatList
            contentContainerStyle={styles.studentListContainer}
            data={item.students}
            keyExtractor={(student) => student.id}
            renderItem={({ item: student }) => (
              <Image source={{ uri: student.avatar }} style={styles.studentAvatar} />
            )}
            ho
//LOGIN TO SEE THE REST OF THE CODE========
          />
        </====>
      </====>
    </====>
  );

  ===== ============ = () => (
    <==== ======{======.====}>
      <==== ======{======.======}>
        <==== ======{======.===========}>======= == =======</====>
        <==== ======{======.==============}>== =====, ==== - ====</====>
      </====>

      <==== ======{======.====}>
        <===== ======={{ ===: '=====://=======.===/===/=======/======/=======.===' }} ======{======.======} />
        <==== ======{======.========}>
          <==== ======{======.========}>==. ==== ======</====>
          <==== ======{======.========}>=========</====>
        </====>
      </====>
    </====>
  )

  ====== (
    <==== ======{======.=========}>
      <==== ======{======.=====}>====='= =======</====>

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

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

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

                                            

Similar snippets

React native template. Timeline with tile description image and dynamic buttons

Timeline with tile description image and dynamic buttons

About this react-native template

This react-native template, calendar timeline screen, was published on Oct 25th 2023, 11:02 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.0K 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.