Apple Widgets
Apple Widgets are a powerful way to add custom functionality to your app. They are small, interactive widgets that can be added to the home screen of your device.
Prerequisites
- You need to have an Apple Developer Account.
Useful commands
To create an iOS widget, run the following command in your project:
npx create-targetAdd the following script to your package.json file, and then run the command to generate the widget code and ensure the preview works correctly:
"scripts": {
"prewidget": "npx expo prebuild --template node_modules/@bacons/apple-targets/prebuild-blank.tgz --clean",
}Resources
- Source Code - Add iOS Widget Branch
- GitHub - Apple Targets Plugin