Example Expo managed project with widget, module to control it and config plugin
npx create-expo-app <your_app_name>
expo-dev-client
npx expo install expo-dev-client
npx create-expo-module@latest --local
modules/<module_name>/ios
and modules/<module_name>/android
modules/widget/android/src/main/java/expo/modules/widget/WidgetModule.kt
, modules/widget/ios/WidgetModule.swift
and modules/widget/index.ts
plugin
folderapp.plugin.js
app.json
and add apple team id in devTeamId
propertynpx expo prebuild
npx expo run:ios
or
npx expo run:android
To run it, you only need the build
folder. If you want to edit the plugin files, you need to rebuild the plugin with https://www.npmjs.com/package/expo-module-scripts
package or your own command.