[English](./README.md) | 简体中文

# @ray-js/doublekey

> 双键

## 安装

```sh
$ npm install @ray-js/doublekey
# or
$ yarn add @ray-js/doublekey
```

## 使用

```tsx
import DoubleKey from '@ray-js/doublekey';

<DoubleKey
  status={[true, true]}
  tip="volume"
  text={['top', 'bottom']}
  onPress={type => {
    console.log(type);
  }}
  onLongPress={type => {
    console.log(type);
  }}
/>

<DoubleKey
  status={[true, true]}
  tip="text"
  img={[Res.add, Res.minus]}
  type="horizontal"
  width={200}
/>

```