1.0.1 • Published 5 years ago

react-native-time-log v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

react-native-time-log

Pure Stateless React Native Time Log Component

Install

npm i -S react-native-time-log

Screenshot

Alt text

Example

import React from 'react';
import TimeLog from 'react-native-time-log'

const data = [
  {
    time: 'Jan 01',
    title: 'Entered User',
    description: 'Neel',
  },
  {
    time: 'Jan 02',
    title: 'Visited Screens',
    description: ['Home', 'Settings', 'Profile'], // Can pass an array
  },
  {
    time: 'Jan 03',
    title: 'Shared with friends',
    image: require('./share.png'), // For Remote Image use: { uri: 'YOUR_IMAGE_LINK' }
  },
]

const flatListProps = {
  //FlatList Props
}

const customStyleProps = {
  //Custom Style to replace default Style
}

export default class App extends React.Component {
  render() {
    return (
        <TimeLog data={data} flatList={flatListProps} style={customStyleProps}/>
    );
  }
}

Usage

| Props           | Required        | Type            |
| --------------- | --------------- | --------------- |
| data            | Yes             | Array of Object |
| style           | No              | Object          |
| flatList        | No              | FlatList props  |

License

Copyright © 2019, Neel Gala. MIT