Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS: 'yoga/style/Style.h' Not Found with New Architecture Enabled #807

Open
Rodrigo816 opened this issue Jan 26, 2024 · 3 comments
Open

Comments

@Rodrigo816
Copy link

Rodrigo816 commented Jan 26, 2024

What react-native version are you using?
0.73.2

What react-native-pdf version are you using?
6.7.4

What platform does your issue occur on?
iOS

Describe your issue as precisely as possible :

  1. Enable RCT_NEW_ARCH_ENABLED=1 to use the new React Native architecture (fabric).
  2. Compile the project in XCode.
  3. The compilation fails with the error: 'yoga/style/Style.h' file not found.

image (14)

@Gu1K
Copy link

Gu1K commented Jan 31, 2024

same error

@psquizzle
Copy link

Same ❌ (ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/YogaStylableProps.h:10:10)

8 | #pragma once
9 |

10 | #include <yoga/style/Style.h>
| ^ 'yoga/style/Style.h' file not found
11 |
12 | #include <react/renderer/core/Props.h>
13 | #include <react/renderer/core/PropsParserContext.h>

[RUN_FASTLANE] › Compiling react-native-pdf Pods/react-native-pdf » RNPDFPdfView.mm
[RUN_FASTLANE]
❌ (ios/Pods/Headers/Public/React-Fabric/react/renderer/components/view/YogaStylableProps.h:10:10)

8 | #pragma once
9 |

10 | #include <yoga/style/Style.h>
| ^ 'yoga/style/Style.h' file not found
11 |
12 | #include <react/renderer/core/Props.h>
13 | #include <react/renderer/core/PropsParserContext.h>

@psquizzle
Copy link

This is fixed in #803
or alternatively add "${PODS_ROOT}/Headers/Private/Yoga" in the podspec file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants