0.0.18 • Published 1 year ago
@ray-js/components-ty-swipeout v0.0.18
English | 简体中文
@ray-js/components-ty-swipeout
Tuya Style Swipeout
Installation
$ npm install @ray-js/components-ty-swipeout
# or
$ yarn add @ray-js/components-ty-swipeout
Usage
import { Icon, View } from '@ray-js/components';
import TyCell from '@ray-js/components-ty-cell';
import Swipeout from '@ray-js/components-ty-swipeout';
<Swipeout
autoClose
right={[
{
text: 'Action',
onPress: () => console.log('Action3'),
style: { backgroundColor: 'red', color: 'white' },
},
]}
>
<TyCell.Item
className={styles.title}
title={
<>
<Icon type="icon-a-sunmaxfill" size={24} color="#2B7AFF" />
Left
</>
}
/>
</Swipeout>;
Swipeout.Group
only one swipeout active at same time.
<Swipeout.Group>
<Swipeout
autoClose
right={[
{
text: 'Action',
onPress: () => console.log('Action3'),
style: { backgroundColor: 'red', color: 'white' },
},
]}
>
<TyCell.Item
className={styles.title}
title={
<>
<Icon type="icon-a-sunmaxfill" size={24} color="#2B7AFF" />
Left
</>
}
/>
</Swipeout>
;
<Swipeout
autoClose
right={[
{
text: 'Action',
onPress: () => console.log('Action3'),
style: { backgroundColor: 'red', color: 'white' },
},
]}
>
<TyCell.Item
className={styles.title}
title={
<>
<Icon type="icon-a-sunmaxfill" size={24} color="#2B7AFF" />
Right
</>
}
/>
</Swipeout>
;
</Swipeout.Group>
0.0.18
1 year ago
0.0.18-beta-3
1 year ago
0.0.18-beta-2
1 year ago
0.0.18-beta-1
1 year ago
0.0.14
2 years ago
0.0.15
2 years ago
0.0.16
2 years ago
0.0.17
2 years ago
0.0.10
3 years ago
0.0.11
3 years ago
0.0.12
3 years ago
0.0.13
3 years ago
0.0.9
3 years ago
0.0.8
3 years ago
0.0.7
3 years ago
0.0.6
3 years ago
0.0.5-beta-ae3c8307
3 years ago
0.0.5
3 years ago
0.0.4
3 years ago