expo-haptics 14.1.4 → 14.1.5-canary-20250611-f0afe80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build.gradle +2 -2
- package/build/Haptics.d.ts +6 -3
- package/build/Haptics.d.ts.map +1 -1
- package/expo-module.config.json +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4.module → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.module} +19 -19
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.module.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.module.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.module.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.module.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4.pom → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.pom} +2 -2
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.pom.md5 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.pom.sha1 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.pom.sha256 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80.pom.sha512 +1 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/maven-metadata.xml +4 -4
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/maven-metadata.xml.md5 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/maven-metadata.xml.sha1 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/maven-metadata.xml.sha256 +1 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/maven-metadata.xml.sha512 +1 -1
- package/package.json +4 -5
- package/src/Haptics.ts +6 -3
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.aar +0 -0
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.aar.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.aar.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.aar.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.aar.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.module.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.module.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.module.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.module.sha512 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.pom.md5 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.pom.sha1 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.pom.sha256 +0 -1
- package/local-maven-repo/host/exp/exponent/expo.modules.haptics/14.1.4/expo.modules.haptics-14.1.4.pom.sha512 +0 -1
- /package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4-sources.jar → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4-sources.jar.md5 → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar.md5} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4-sources.jar.sha1 → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar.sha1} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4-sources.jar.sha256 → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar.sha256} +0 -0
- /package/local-maven-repo/host/exp/exponent/expo.modules.haptics/{14.1.4/expo.modules.haptics-14.1.4-sources.jar.sha512 → 14.1.5-canary-20250611-f0afe80/expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar.sha512} +0 -0
package/android/build.gradle
CHANGED
|
@@ -4,13 +4,13 @@ plugins {
|
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
group = 'host.exp.exponent'
|
|
7
|
-
version = '14.1.
|
|
7
|
+
version = '14.1.5-canary-20250611-f0afe80'
|
|
8
8
|
|
|
9
9
|
android {
|
|
10
10
|
namespace "expo.modules.haptics"
|
|
11
11
|
defaultConfig {
|
|
12
12
|
versionCode 16
|
|
13
|
-
versionName '14.1.
|
|
13
|
+
versionName '14.1.5-canary-20250611-f0afe80'
|
|
14
14
|
}
|
|
15
15
|
}
|
|
16
16
|
|
package/build/Haptics.d.ts
CHANGED
|
@@ -4,19 +4,22 @@ import { NotificationFeedbackType, ImpactFeedbackStyle, AndroidHaptics } from '.
|
|
|
4
4
|
* @param type A notification feedback type that on Android is simulated using [`Vibrator`](https://developer.android.com/reference/android/os/Vibrator)
|
|
5
5
|
* and iOS is directly mapped to [`UINotificationFeedbackType`](https://developer.apple.com/documentation/uikit/uinotificationfeedbacktype).
|
|
6
6
|
* You can use one of `Haptics.NotificationFeedbackType.{Success, Warning, Error}`.
|
|
7
|
-
* @return A `Promise` which
|
|
7
|
+
* @return A `Promise` which fulfills once native size haptics functionality is triggered.
|
|
8
8
|
*/
|
|
9
9
|
export declare function notificationAsync(type?: NotificationFeedbackType): Promise<void>;
|
|
10
10
|
/**
|
|
11
11
|
* @param style A collision indicator that on Android is simulated using [`Vibrator`](https://developer.android.com/reference/android/os/Vibrator)
|
|
12
12
|
* and on iOS, it is directly mapped to [`UIImpactFeedbackStyle`](https://developer.apple.com/documentation/uikit/uiimpactfeedbackgenerator/feedbackstyle).
|
|
13
13
|
* You can use one of `Haptics.ImpactFeedbackStyle.{Light, Medium, Heavy, Rigid, Soft}`.
|
|
14
|
-
* @return A `Promise` which
|
|
14
|
+
* @return A `Promise` which fulfills once native size haptics functionality is triggered.
|
|
15
|
+
* @see Android's `Vibrator` API is not recommended for implementing haptics feedback. **Instead, you should use
|
|
16
|
+
* [`performAndroidHapticsAsync`](#hapticsperformandroidhapticsasynctype), which is similar to iOS haptic feedback and does not require
|
|
17
|
+
* `VIBRATE` permission.**
|
|
15
18
|
*/
|
|
16
19
|
export declare function impactAsync(style?: ImpactFeedbackStyle): Promise<void>;
|
|
17
20
|
/**
|
|
18
21
|
* Used to let a user know when a selection change has been registered.
|
|
19
|
-
* @return A `Promise` which
|
|
22
|
+
* @return A `Promise` which fulfills once native size haptics functionality is triggered.
|
|
20
23
|
*/
|
|
21
24
|
export declare function selectionAsync(): Promise<void>;
|
|
22
25
|
/**
|
package/build/Haptics.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Haptics.d.ts","sourceRoot":"","sources":["../src/Haptics.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGhG;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,GAAE,wBAA2D,GAChE,OAAO,CAAC,IAAI,CAAC,CAKf;AAGD
|
|
1
|
+
{"version":3,"file":"Haptics.d.ts","sourceRoot":"","sources":["../src/Haptics.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAGhG;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,IAAI,GAAE,wBAA2D,GAChE,OAAO,CAAC,IAAI,CAAC,CAKf;AAGD;;;;;;;;GAQG;AACH,wBAAsB,WAAW,CAC/B,KAAK,GAAE,mBAAgD,GACtD,OAAO,CAAC,IAAI,CAAC,CAKf;AAGD;;;GAGG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC,CAKpD;AAED;;;;GAIG;AACH,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,cAAc,iBAKpE;AAED,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,cAAc,EAAE,CAAC"}
|
package/expo-module.config.json
CHANGED
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2dfdf0399b6603722e8733b5706d84ef
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5e638a3bf67ce550dc4c72a60d7c354440af405a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
385bf177a35c2d9c0e88068890b0228a1e7f0d3090913bcc66e295010afefd12
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
91d3634957625d34a71bec701c5a40e035eef88fb0a4a5cff13177a835176dd1f1cbb7f17d831b116726d27d13821df064d7672f9dc30509e1d1e6ae98c7207f
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "host.exp.exponent",
|
|
5
5
|
"module": "expo.modules.haptics",
|
|
6
|
-
"version": "14.1.
|
|
6
|
+
"version": "14.1.5-canary-20250611-f0afe80",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
10
10
|
},
|
|
11
11
|
"createdBy": {
|
|
12
12
|
"gradle": {
|
|
13
|
-
"version": "8.
|
|
13
|
+
"version": "8.14"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
"variants": [
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
],
|
|
34
34
|
"files": [
|
|
35
35
|
{
|
|
36
|
-
"name": "expo.modules.haptics-14.1.
|
|
37
|
-
"url": "expo.modules.haptics-14.1.
|
|
38
|
-
"size":
|
|
39
|
-
"sha512": "
|
|
40
|
-
"sha256": "
|
|
41
|
-
"sha1": "
|
|
42
|
-
"md5": "
|
|
36
|
+
"name": "expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar",
|
|
37
|
+
"url": "expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar",
|
|
38
|
+
"size": 28251,
|
|
39
|
+
"sha512": "91d3634957625d34a71bec701c5a40e035eef88fb0a4a5cff13177a835176dd1f1cbb7f17d831b116726d27d13821df064d7672f9dc30509e1d1e6ae98c7207f",
|
|
40
|
+
"sha256": "385bf177a35c2d9c0e88068890b0228a1e7f0d3090913bcc66e295010afefd12",
|
|
41
|
+
"sha1": "5e638a3bf67ce550dc4c72a60d7c354440af405a",
|
|
42
|
+
"md5": "2dfdf0399b6603722e8733b5706d84ef"
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
},
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"group": "org.jetbrains.kotlin",
|
|
57
57
|
"module": "kotlin-stdlib-jdk7",
|
|
58
58
|
"version": {
|
|
59
|
-
"requires": "2.
|
|
59
|
+
"requires": "2.1.20"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
{
|
|
@@ -69,13 +69,13 @@
|
|
|
69
69
|
],
|
|
70
70
|
"files": [
|
|
71
71
|
{
|
|
72
|
-
"name": "expo.modules.haptics-14.1.
|
|
73
|
-
"url": "expo.modules.haptics-14.1.
|
|
74
|
-
"size":
|
|
75
|
-
"sha512": "
|
|
76
|
-
"sha256": "
|
|
77
|
-
"sha1": "
|
|
78
|
-
"md5": "
|
|
72
|
+
"name": "expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar",
|
|
73
|
+
"url": "expo.modules.haptics-14.1.5-canary-20250611-f0afe80.aar",
|
|
74
|
+
"size": 28251,
|
|
75
|
+
"sha512": "91d3634957625d34a71bec701c5a40e035eef88fb0a4a5cff13177a835176dd1f1cbb7f17d831b116726d27d13821df064d7672f9dc30509e1d1e6ae98c7207f",
|
|
76
|
+
"sha256": "385bf177a35c2d9c0e88068890b0228a1e7f0d3090913bcc66e295010afefd12",
|
|
77
|
+
"sha1": "5e638a3bf67ce550dc4c72a60d7c354440af405a",
|
|
78
|
+
"md5": "2dfdf0399b6603722e8733b5706d84ef"
|
|
79
79
|
}
|
|
80
80
|
]
|
|
81
81
|
},
|
|
@@ -89,8 +89,8 @@
|
|
|
89
89
|
},
|
|
90
90
|
"files": [
|
|
91
91
|
{
|
|
92
|
-
"name": "expo.modules.haptics-14.1.
|
|
93
|
-
"url": "expo.modules.haptics-14.1.
|
|
92
|
+
"name": "expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar",
|
|
93
|
+
"url": "expo.modules.haptics-14.1.5-canary-20250611-f0afe80-sources.jar",
|
|
94
94
|
"size": 5163,
|
|
95
95
|
"sha512": "f633d4531c9b82d15c63049e288aa9c626060387bd337d684eeeab8636cf9c66c821715ec4d52f8a25d054296b843e6947d7d644af223e2d1cc89737fc8fea61",
|
|
96
96
|
"sha256": "9722e38c417c5e51ed9a82b2e3f97aed7f554dd0531707ff0c008771b0637f04",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
a8ec68181cd8d3b171a1ca5f604e8d8b
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cbeacb16cadfb0a6a09383fb8b833643b3ea26aa
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d766b11c78232dfbaa6b7ecd3a4ec37966098df1a1626e7811a9f2ee936f2431
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
53986e6241d2169314e0405e3e36e2812ccd419ec9d7e3a3c1466e213c4cbc45ef1e265aa95e6e83143c89630368a0914275ed1cefd61a6c2e475aba03590216
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>host.exp.exponent</groupId>
|
|
11
11
|
<artifactId>expo.modules.haptics</artifactId>
|
|
12
|
-
<version>14.1.
|
|
12
|
+
<version>14.1.5-canary-20250611-f0afe80</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>expo.modules.haptics</name>
|
|
15
15
|
<url>https://github.com/expo/expo</url>
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<dependency>
|
|
35
35
|
<groupId>org.jetbrains.kotlin</groupId>
|
|
36
36
|
<artifactId>kotlin-stdlib-jdk7</artifactId>
|
|
37
|
-
<version>2.
|
|
37
|
+
<version>2.1.20</version>
|
|
38
38
|
<scope>runtime</scope>
|
|
39
39
|
</dependency>
|
|
40
40
|
</dependencies>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
bd30ee75ccb6b621a4bce2bce068065a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0427ee2f92cf27054e96b7983269b930b63c1a2f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
11f40be48b76a75ab06f77c275f694e20a7942bec188ca8c58e018c7a968e617
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4978163e6e5d20d3874b22c63f701df169895c1f45f3e0c546e3b09575e94a8180003fd9fca39022ddd9987190f520ec0b76f92834c29c5d7c1df4e54b7ce449
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>host.exp.exponent</groupId>
|
|
4
4
|
<artifactId>expo.modules.haptics</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>14.1.
|
|
7
|
-
<release>14.1.
|
|
6
|
+
<latest>14.1.5-canary-20250611-f0afe80</latest>
|
|
7
|
+
<release>14.1.5-canary-20250611-f0afe80</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>14.1.
|
|
9
|
+
<version>14.1.5-canary-20250611-f0afe80</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20250611221452</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
081be463d77b7ae864059346e672597e
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
ffc28b9aae63c7d961807db94133916114b6bdb7
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c9128b41b9fb452ae57f28411efcef77daeefd857b5505cc36f993335c768039
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
c30e32f548148d890177a88e0fe6eac1d940784b83396913370afabe630663892a008f4c149d6843333f2ac73f31703d7b3052d548d1a67e55fa1d0d61372a62
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "expo-haptics",
|
|
3
|
-
"version": "14.1.
|
|
3
|
+
"version": "14.1.5-canary-20250611-f0afe80",
|
|
4
4
|
"description": "Provides access to the system's haptics engine on iOS, vibration effects on Android, and Web Vibration API on web.",
|
|
5
5
|
"main": "src/Haptics.ts",
|
|
6
6
|
"types": "build/Haptics.d.ts",
|
|
@@ -33,10 +33,9 @@
|
|
|
33
33
|
"homepage": "https://docs.expo.dev/versions/latest/sdk/haptics/",
|
|
34
34
|
"dependencies": {},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"expo-module-scripts": "
|
|
36
|
+
"expo-module-scripts": "4.1.8-canary-20250611-f0afe80"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"expo": "
|
|
40
|
-
}
|
|
41
|
-
"gitHead": "84355076bc31a356aa3d23257f387f221885f53d"
|
|
39
|
+
"expo": "54.0.0-canary-20250611-f0afe80"
|
|
40
|
+
}
|
|
42
41
|
}
|
package/src/Haptics.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { NotificationFeedbackType, ImpactFeedbackStyle, AndroidHaptics } from '.
|
|
|
9
9
|
* @param type A notification feedback type that on Android is simulated using [`Vibrator`](https://developer.android.com/reference/android/os/Vibrator)
|
|
10
10
|
* and iOS is directly mapped to [`UINotificationFeedbackType`](https://developer.apple.com/documentation/uikit/uinotificationfeedbacktype).
|
|
11
11
|
* You can use one of `Haptics.NotificationFeedbackType.{Success, Warning, Error}`.
|
|
12
|
-
* @return A `Promise` which
|
|
12
|
+
* @return A `Promise` which fulfills once native size haptics functionality is triggered.
|
|
13
13
|
*/
|
|
14
14
|
export async function notificationAsync(
|
|
15
15
|
type: NotificationFeedbackType = NotificationFeedbackType.Success
|
|
@@ -25,7 +25,10 @@ export async function notificationAsync(
|
|
|
25
25
|
* @param style A collision indicator that on Android is simulated using [`Vibrator`](https://developer.android.com/reference/android/os/Vibrator)
|
|
26
26
|
* and on iOS, it is directly mapped to [`UIImpactFeedbackStyle`](https://developer.apple.com/documentation/uikit/uiimpactfeedbackgenerator/feedbackstyle).
|
|
27
27
|
* You can use one of `Haptics.ImpactFeedbackStyle.{Light, Medium, Heavy, Rigid, Soft}`.
|
|
28
|
-
* @return A `Promise` which
|
|
28
|
+
* @return A `Promise` which fulfills once native size haptics functionality is triggered.
|
|
29
|
+
* @see Android's `Vibrator` API is not recommended for implementing haptics feedback. **Instead, you should use
|
|
30
|
+
* [`performAndroidHapticsAsync`](#hapticsperformandroidhapticsasynctype), which is similar to iOS haptic feedback and does not require
|
|
31
|
+
* `VIBRATE` permission.**
|
|
29
32
|
*/
|
|
30
33
|
export async function impactAsync(
|
|
31
34
|
style: ImpactFeedbackStyle = ImpactFeedbackStyle.Medium
|
|
@@ -39,7 +42,7 @@ export async function impactAsync(
|
|
|
39
42
|
// @needsAudit
|
|
40
43
|
/**
|
|
41
44
|
* Used to let a user know when a selection change has been registered.
|
|
42
|
-
* @return A `Promise` which
|
|
45
|
+
* @return A `Promise` which fulfills once native size haptics functionality is triggered.
|
|
43
46
|
*/
|
|
44
47
|
export async function selectionAsync(): Promise<void> {
|
|
45
48
|
if (!ExpoHaptics?.selectionAsync) {
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
cb62b8b29342f19498cf859ac9e310bd
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
dd05913127a18e1b86d629a59e47e8395b272e86
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
88ed5eb550d7dace4fc16f4c10d51ac4e94b00449d652e772ea8d9e28cb00683
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
d1076b99c0a4998b772ec55092756303b068ccdae385ccaa4baea09ba349bb76e55ff3c83f280cbcc8b98088ca6bf83d8c70416bf31b7b996bf814ee812d8be5
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
8e3b57949694fedd3607de186826f474
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
6772278f75268bdae66a5291d999c69fb8549913
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9487671a7727b40d7800226803f2ddccc6970dc725c967e0e72656509a62d4db
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e332881c463ac2ed1b6f4866657ddcd2a180c422a0ecbd8d5052af88d0c055b93b78f18d27c0577d5f667611e172a3948830f7035f671ddc96d2ef7d2130afdc
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
af8fc74d729061dc50c84922598241ab
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
eb114bad3fca9031b37e514ae1de0efdf1a588ea
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
f4b9745113921893fb584d6af9ac7bda3c32be4eff13915eb38d1939a4a33432
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
c4afc13b1ab4b6e9ccfcd25fa2ee2c01cb866432f4f5d46a872b1acc0dee4803be2d91ce3ff1fbebea8b5723efc1769da3f35779f2e2d39beea1a3e98bb85cba
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|