bndkt / react-native-widget-extension

Add widgets and live activities to a React Native app
https://bndkt.com/blog/2023/ios-live-activities
437 stars 33 forks source link

Cannot find native module 'ReactNativeWidgetExtension' #18

Closed ncampuzano closed 7 months ago

ncampuzano commented 7 months ago

Hello,

I've been trying to run the example given by the package throughout the example folder as following the blog. However, I found the following problem:

"Cannot find native module 'ReactNativeWidgetExtension"

image

image

I have build the project multiple times and none of the cases the native component is found. How should I test this library properly?

ncampuzano commented 7 months ago

For future reference, my error is the mac os was working with ruby 2.6. So it made the cocoaPods was installed by that ruby version and then it failed on the building. I updated the version to 3.3, based on this post https://github.com/expo/expo/issues/20707#issuecomment-1375901074 + how to install properly the cocoaPods here https://stackoverflow.com/a/22878202 on the projects. I ran the npx expo run:ios --device on my phone and it works.