1 | import { ComponentType } from 'react'
|
2 |
|
3 | import { StandardProps } from '../common'
|
4 |
|
5 | interface ForcePressGestureHandlerProps extends StandardProps {
|
6 | /** 声明手势协商时的组件标识
|
7 | * @supported weapp
|
8 | */
|
9 | tag?: string
|
10 | /** 手势识别成功的回调
|
11 | * @supported weapp
|
12 | */
|
13 | onGestureWorklet?: string
|
14 | /** 手势是否应该被识别
|
15 | * @supported weapp
|
16 | */
|
17 | shouldAcceptGestureWorklet?: string
|
18 | /** 声明可同时触发的手势节点
|
19 | * @supported weapp
|
20 | */
|
21 | simultaneousHandlers?: string[]
|
22 | /** 代理的原生节点类型
|
23 | * @supported weapp
|
24 | */
|
25 | nativeView?: string
|
26 | }
|
27 |
|
28 | /**iPhone 设备重按时触发手势
|
29 | * 微信小程序下 skyline 的手势标签,只能在 CompileMode 中使用
|
30 | * @supported weapp
|
31 | * @example_react
|
32 | * ```tsx
|
33 | * import { Component } from 'react'
|
34 | * import { View, ForcePressGestureHandler } from '@tarojs/components'
|
35 | *
|
36 | * export function Index () {
|
37 | * return (
|
38 | * <View compileMode>
|
39 | * <ForcePressGestureHandler onGestureWorklet="onGesture">
|
40 | * <View className='circle'></View>
|
41 | * </ForcePressGestureHandler>
|
42 | * </View>
|
43 | * )
|
44 | * }
|
45 | * ```
|
46 | */
|
47 | declare const ForcePressGestureHandler: ComponentType<ForcePressGestureHandlerProps>
|
48 |
|
49 | export { ForcePressGestureHandler, ForcePressGestureHandlerProps }
|