0.1.0 • Published 4 years ago

refps v0.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

refps npm

React/React Native FPS counter with graph.

Install

$ yarn add refps

Usage

type TReFps = {
  backgroundColor: string,
  strokeColor: string,
  strokeWidth: number,
  fontSize: number,
  fontColor: string,
  width: number,
  height: number,
  graphLength: number,
}
import React from 'react'
import { ReFps } from 'refps'

export const App = () => (
  <ReFps
    backgroundColor="black"
    strokeColor="red"
    strokeWidth={4}
    fontSize={12}
    fontColor="white"
    width={100}
    height={50}
    graphLength={10}
  />
)