Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.63 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.63 KB
_For Development _
Clone the project run yarn install in root folder then cd into example folder again yarn install. Then from example folder yarn start and yarn android


This is will be after publishing to npm

RN-Trimmer

React Native Trimmer Library For Trim Values And Smooth Animation Experience


How To Get Started ?

To Use This Library You Need To Setup react-natvie-reanimated and react-native-gesture-handler


Installation

npm install --save RN-Trimmer
# OR
yarn add RN-Trimmer

Examples

import { RNTrimmer } from 'RN-Trimmer'

const App = () => {
  return (
    <RNTrimmer
      duration={duration}
      onEndRelease={(time) => setStartTime(time)}
      onStartRelease={(time) => setEndTime(time)}
    />
  )
}
Props Type Default Note Required
duration Number 0 Yes
onEndRelease Function Yes
onStartRelease Function Yes
bothSwipe Boolean true No

Development

yarn

yarn run build

yarn test