1.0.1 • Published 1 year ago

@ray-js/circlehandle v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

English | 简体中文

@ray-js/circlehandle

Circlehandle

Installation

$ npm install @ray-js/circlehandle
# or
$ yarn add @ray-js/circlehandle

Usage

import CircleHandle from '@ray-js/circlehandle';
export default () => (
  <CircleHandle
    onPress={type => console.log('click type:', type)}
    onLongPress={type => console.log('click type:', type)}
    pointColor={{
      top: '#000',
      right: '#000',
      bottom: '#000',
      left: '#000',
    }}
    status={{
      top: true,
      bottom: true,
      left: true,
      right: true,
      center: true,
    }}
    tip={{
      top: 'top',
      right: 'right',
      bottom: 'bottom',
      left: 'left',
    }}
  />
);