feat: add App Intents and device control widget

This commit is contained in:
joshuafhiggins authored and Joshua Higgins committed 2026-10-22 18:58:48 -04:00
1 parent 838a25b990
commit db4af0ef6a
43 files changed
+852 -1070

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
internal import ExpoAppIntents
internal import ExpoModulesCore
/// Registered Expo inline module that wires app-target App Intents code to expo-app-intents.
/// Do not change the name of this class.
final class AppIntentsSetup: Module {
public func definition() -> ExpoModulesCore.ModuleDefinition {
Name("AppIntentsSetup")
OnCreate {
if #available(iOS 18.0, *) {
Task {
await AppIntentDispatcher.shared.setShortcutsRefreshHandler {
AppShortcuts.updateAppShortcutParameters()
}
AppShortcuts.updateAppShortcutParameters()
}
}
}
}
}