@ray-js/circlehandle
v1.0.2
Published
方向盘
Downloads
2
Readme
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',
}}
/>
);