Skip to content

pafry7/widget-expo-example

Repository files navigation

widget-expo-example

Example Expo managed project with widget, module to control it and config plugin

Steps to reproduce

  1. Create expo project
npx create-expo-app <your_app_name>
  1. Install expo-dev-client
npx expo install expo-dev-client
  1. Add local expo modules
npx create-expo-module@latest --local
  1. Remove unnecessary files (web and views) from modules/<module_name>/ios and modules/<module_name>/android
  2. Copy source code from modules/widget/android/src/main/java/expo/modules/widget/WidgetModule.kt, modules/widget/ios/WidgetModule.swift and modules/widget/index.ts
  3. Copy plugin folder
  4. Copy app.plugin.js
  5. Update app.json and add apple team id in devTeamId property
  6. Run
npx expo prebuild
  1. Run
npx expo run:ios

or

npx expo run:android

Working with the plugin

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors