pafry7 / widget-expo-example

15 stars 2 forks source link

Watch Extension #1

Open noman-ahmad opened 1 year ago

noman-ahmad commented 1 year ago

Do you think that it would be possible to extend this kind of plugin paradigm to also support apple watch/android watch extensions?

pafry7 commented 1 year ago

Yeah, I think it's possible and it would work similarly to the widget. You will have to: 1) Copy watch extension files during prebuild 2) Add target to the project via config plugin 3) Write your own module handling communication between the app and the extension or use existing solutions: https://github.com/mtford90/react-native-watch-connectivity and https://github.com/circles-00/react-native-wear-communication-module