Skip to content

vijayst/react-native-sparkline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-sparkline

npm code style: standard code style: prettier

Prerequisite

Enable ART on iOS

Usage

  • Install
npm i react-native-sparkline
  • Enjoy it
import React from 'react'
import Sparkline from 'react-native-sparkline'

const data = Array.from({ length: 20 }).map(
  (noValue, i) => i + (i + 1) * Math.random()
)

const App = () => (
  <Sparkline data={data}>
    <Sparkline.Line />
    <Sparkline.Fill />
    <Sparkline.Spots />
    <Sparkline.Band />
  </Sparkline>
)

Screenshots

iPhone8

iPhone screenshot

Nexus7

Android screenshot

License

MIT

About

Beautiful and expressive Sparkline component for react-native

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors