Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-native-daily-activity

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-daily-activity

Github style daily activity charts for React Native

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Github style daily activity charts for React Native

Renders the native daily charts component on iOS and Android. Example:

import React from 'react';
import { View } from 'react-native';
import DailyActivityChart from 'react-native-daily-activity';

export default function App()
  const data = {
   '2019/11/1': 3,
    '2019/11/2': 3,
    '2019/11/3': 4,
    '2019/11/4': 5,
    '2019/11/5': 13,
    '2019/11/6': 8,
    '2019/11/7': 12,
    '2019/11/8': 8,
    '2019/11/9': 11,
    '2019/11/10': 13
  }

  render() {
    return (
      <View>
        <DailyActivityChart data={data}/>
      </View>
    );
  }
}


How its look like

react-native-daily-activity

Reference

Props

data

Object of data, that holds the one current month reports. Data structure given below.

{
  '2019/11/1': 3,
  '2019/11/2': 3,
  '2019/11/3': 4,
  '2019/11/4': 5,
  '2019/11/5': 13,
  '2019/11/6': 8,
  '2019/11/7': 12,
  '2019/11/8': 8,
  '2019/11/9': 11,
  '2019/11/10': 13
}

TypeRequired
ObjectYes

specificMonth

Number of month data you are given. If you want to render specific any month rather than current. At this situation, year will be current year if there is no any given value to specificYear. Example:

<DailyActivityChart data={data} specificMonth={3}/>

TypeRequired
NumberNo

specificYear

Specific year of data you are given. If you want to render specific any year rather than current. At this situation, month will be current month if there is no any given value to specificMonth. Example:

<DailyActivityChart data={data} specificYear={2017} />

TypeRequired
NumberNo

color

Specific color can be set. For setting color, it has to be a HEX color code and most darkest version of choosen color.

Example:

<DailyActivityChart data={data} color={'#0821F3'} />

TypeRequired
HEX color codeNo

Keywords

FAQs

Package last updated on 26 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc