u/csark0812

▲ 13 r/mobiledev+1 crossposts

Introducing expo-targets v1.0: expand the UI surface of your app

Hi! i built a library so expo apps can ship iOS targets and Android app extensions. I posted about this a while ago when the set was smaller. since then i've added a lot more Xcode targets and Android support, and i'm pretty excited about where it landed.

Expo is great at the main app, but a phone is full of other UI surfaces (share sheet, widgets, Live Activities, App Clips, iMessage, keyboards, Watch, etc). I wanted my apps on those too, and Expo didn't really give you a path there, so I built this. Some of the targets can be React Native (share, action, clips, messages), and Expo UI is also supported on both platforms. widgets and a lot of the rest are Swift/Kotlin because that's what the OS hosts. Android covers a slice of the same idea. about 47 types now.

RN targets can also OTA through expo-updates. Updates can't run inside the extension (that crashes it), so the host copies the new JS bundle into the App Group after an update. As far as i can tell, no other lib can do this - so hopefully should unlock a lot for you guys! docs: https://github.com/csark0812/expo-targets/blob/main/docs/react-native-extensions.md#extension-bundle-sideload-with-expo-updates

npm install expo-targets
npx expo-targets add

if you're already on official expo-widgets, you may need to fully swap over - they fight in some places.

repo: https://github.com/csark0812/expo-targets
npm: expo-targets (1.0.3, tested on SDK 57)

lmk if questions! excited for you all to get your hands on it!

reddit.com
u/csark0812 — 7 days ago