react-native-theme-control icon indicating copy to clipboard operation
react-native-theme-control copied to clipboard

Build fails when new architecture is enabled and useFrameworks = static

Open Kasendwa opened this issue 1 year ago • 2 comments

Hello, thanks a lot for the work.

I get this issue when I try to make a build with the new architecture and useFrameworks = static.

❌  (node_modules/@vonovak/react-native-theme-control/ios/RNThemeControl.h:3:11)

  1 | 
  2 | #ifdef RCT_NEW_ARCH_ENABLED
> 3 |   #import <RNThemeControlCGen/RNThemeControlCGen.h>
    |           ^ 'RNThemeControlCGen/RNThemeControlCGen.h' file not found
  4 | #else
  5 |   #import <React/RCTBridgeModule.h>
  6 | #endif

Any help rendered towards this would be greatly appreciated. Happy to compensate for it too.

Kasendwa avatar Sep 06 '24 21:09 Kasendwa

Can you please create a Minimal, Reproducible Example that we can see the issue with? The most effective reproducible examples are created by starting a new project from scratch and adding in only the necessary pieces to reproduce the issue.Thank you

vonovak avatar Sep 08 '24 13:09 vonovak

Hi @vonovak, thanks for getting back to me. I will work on that and share soon.

Kasendwa avatar Sep 08 '24 13:09 Kasendwa

Hello, did you make it work?

vonovak avatar Oct 23 '24 05:10 vonovak

Hi @vonovak yes I did. Sorry I didn't give the feedback. It turns out the issue wasn't really with the plugin even. Fixing something else ended up fixing this.

Kasendwa avatar Nov 01 '24 21:11 Kasendwa