native-circular-status
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Native Circular Status

NPM version NPM downloads NPM license run in expo snack Codecov Travis Bundle size

About

Progress bar modeled on the animation from Apple Music and App Store on iOS

Similar Projects

How to Install

First, install the library in your project by npm:

npm install native-circular-status

Or Yarn:

yarn add native-circular-status

Getting Started

Connect the library with the project using ES6 import:

import NativeCircularStatus from 'native-circular-status'

Options

NativeCircularStatus

Component extends TouchableOpacityProps and has the following props:

name type default description
progress
iconPause
iconPlay
paused
renderContent
variant
animated
color
placeholderColor
onPause
onPlay
onStatusChanged
thinking
contentProps
iconProps
placeholderProps
progressProps

Example

import React, { useState } from 'react'
import NativeCircularStatus from 'native-circular-status'

const App = () => {
  const [paused, setPaused] = useState(false)

  return (
    <NativeCircularStatus
      progress={0.4}
      paused={paused}
      onPlay={() => setPaused(false)} 
      onPause={() => setPaused(true)} 
    />
  )
}

export default App

License

This project is licensed under the MIT License © 2021-present Jakub Biesiada

Package Sidebar

Install

npm i native-circular-status

Weekly Downloads

7

Version

0.0.1

License

MIT

Unpacked Size

13.3 kB

Total Files

6

Last publish

Collaborators

  • jbiesiada