Skip to content

Example of an iOS app with Widgets, Watch App, and Watch Complications in Expo's Managed Workflow (EAS).

Notifications You must be signed in to change notification settings

mpiannucci/eas-widget-watchos-example

 
 

Repository files navigation

An example of adding a Widget, Watch App, and Watch App Complication in Expo's Managed Workflow (EAS).

ios watchos app watchos complication

Folders

  • plugin: Config Plugins
  • widget: Template files for widget
  • watch: Template files for watch app
  • complication: Template files for watch app complication

Set up

Install

yarn install

Edit app.json

Edit following fields.

  • android.package
  • ios.bundleIdentifier
  • extra.eas.build.experimental.ios.appExtensions
  • <APPLE_DEV_TEAM_ID> in plugins

Update the entitlements file to match your app group you have enabled for your team. Otherwise disbale the entitlements sections to not use default app groups

Run on Local

iOS or Android App

yarn android
# or
yarn ios

iOS Widget or WatchOS App + Complication

If you haven't yet, run prebuild

yarn prebuild

Then, if necessary, install pods

cd ios && pod install && cd ..

Then you can open the workspace in Xcode and run the app or widget target.

open ios/EASWidgetandWatchOSExample.xcworkspace

TODO

  • Get shared files working between targets, whether just copying or actually copying once and sharing the file between targets
  • Get Swift Package Manager working in extensions

About

Example of an iOS app with Widgets, Watch App, and Watch Complications in Expo's Managed Workflow (EAS).

Topics

Resources

Stars

Watchers

Forks

Languages

  • TypeScript 64.5%
  • JavaScript 28.3%
  • Swift 7.2%