1.0.0 • Published 1 year ago
@ray-js/doublekey v1.0.0
English | 简体中文
@ray-js/doublekey
DoubleKey
Installation
$ npm install @ray-js/doublekey
# or
$ yarn add @ray-js/doublekey
Usage
import DoubleKey from '@ray-js/doublekey';
<DoubleKey
status={[true, true]}
tip="volume"
text={['top', 'bottom']}
onPress={[
() => {
console.log('click top');
},
() => {
console.log('click bottom');
},
]}
onLongPress={[
() => {
console.log('longClick top');
},
() => {
console.log('longClick bottom');
},
]}
/>
<DoubleKey
status={[true, true]}
tip="text"
img={[Res.add, Res.minus]}
type="horizontal"
width={200}
/>
1.0.0
1 year ago