feat: update
This commit is contained in:
@@ -90,20 +90,20 @@ export function useHaptics() {
|
||||
|
||||
/**
|
||||
* 使用示例:
|
||||
*
|
||||
*
|
||||
* function MyComponent() {
|
||||
* const haptics = useHaptics();
|
||||
*
|
||||
*
|
||||
* const handlePress = () => {
|
||||
* haptics.light();
|
||||
* // 执行其他操作
|
||||
* };
|
||||
*
|
||||
*
|
||||
* const handleSuccess = () => {
|
||||
* haptics.success();
|
||||
* // 显示成功消息
|
||||
* };
|
||||
*
|
||||
*
|
||||
* return (
|
||||
* <TouchableOpacity onPress={handlePress}>
|
||||
* <Text>Press me</Text>
|
||||
@@ -111,4 +111,3 @@ export function useHaptics() {
|
||||
* );
|
||||
* }
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user