### Install Expo Widgets Source: https://github.com/mike-stewart-dev/expo-widgets/blob/main/README.md Command to install the expo-widgets package using npx. Use v1 packages for Expo 49 or v2 for Expo 51+. ```bash npx expo install @bittingz/expo-widgets ``` -------------------------------- ### Run Example Project Commands Source: https://github.com/mike-stewart-dev/expo-widgets/blob/main/README.md Commands to navigate to the example project directory and build/run the iOS or Android applications. Includes prebuild steps for native project generation. ```bash cd example npm run prebuild:ios npm run ios OR npm run prebuild:android npm run android ``` -------------------------------- ### App Configuration for Expo Widgets Source: https://github.com/mike-stewart-dev/expo-widgets/blob/main/README.md Configuration object to be added to the plugins array in app.config.{js/ts}. It specifies paths for iOS and Android widget sources, development team ID, build modes, and widget definitions. ```javascript [ "@bittingz/expo-widgets", { ios: { src: "./src/my/path/to/ios/widgets/folder", devTeamId: "your apple dev team ID", mode: "production", moduleDependencies: [], useLiveActivities: false, frequentUpdates: false, entitlements: { "any xcode entitlement the widget needs": "entitlement value" } }, android: { src: "./src/my/path/to/android/widgets/folder", widgets: [ { "name": "MyWidgetProvider", "resourceName": "@xml/my_widget_info" } ], distPlaceholder: "optional.placeholder" } } ] ``` -------------------------------- ### Override Xcode Options Source: https://github.com/mike-stewart-dev/expo-widgets/blob/main/README.md JSON configuration to override Xcode build settings and entitlements within the app.json configuration. This allows fine-grained control over the iOS extension build process. ```json { "ios": { "xcode": { "appExtAPI": true, "configOverrides": { "SWIFT_VERSION": "5.0" }, "entitlements": {} } } } ``` -------------------------------- ### Android Troubleshooting: Unresolved R Reference Source: https://github.com/mike-stewart-dev/expo-widgets/blob/main/README.md Guidance for resolving 'unresolved reference: R' errors in Kotlin widget files by adding the package ID to the import statement and rebuilding the Android project. ```kotlin // Add this line to your widget kotlin file: package your.appconfig.packageid.R // Then delete your android folder and rebuild. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.