react-native-uitextview: Failed to build with Expo SDK 53

Can’t install this library with Expo SDK 53 and React Native 0.79. New arch enabled.

Got the following build error:

/node_modules/react-native-uitextview/ios/RNUITextViewShadowNode.h:3:10)

  1 | #pragma once
  2 | 
> 3 | #include <react-native-uitextview/EventEmitters.h>
    |          ^ 'react-native-uitextview/EventEmitters.h' file not found
  4 | #include <react-native-uitextview/Props.h>
  5 | #include <react/renderer/components/view/ConcreteViewShadowNode.h>
  6 | #include <react/renderer/textlayoutmanager/TextLayoutManager.h>

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 8
  • Comments: 17 (5 by maintainers)

Most upvoted comments

@kimchi-developer when using firebase you have to use static frameworks. Any other solution?

https://github.com/bluesky-social/react-native-uitextview/pull/33/commits/793cf29143d0bd0e08b17b77af04890150b2f96c

“I’ve created new PR! This might help with the static frameworks issue.”

The same error also happens with useFrameworks: 'static'.

Hey all. There is a chance this got fixed in this PR I just merged https://github.com/bluesky-social/react-native-uitextview/pull/33. It’s now released as 2.0.4 on npm. Can you all give that a shot?

Sorry for the delay in getting around to fixing this 🙏

@SGamrekelashvili trying out your solution ended me up with this error

Build failed: The “Run fastlane” step failed because of an error in the Xcode build process. We automatically detected following errors in your Xcode build logs:

  • ‘react/renderer/textlayoutmanager/TextLayoutContext.h’ file not found Refer to “Xcode Logs” below for additional, more detailed logs.

Hello guys, i patch package and sharing to you, its working correctly and i think this will help you before they release fix

@haileyok i think this will help you to resolve issue without expo crew.

thanks and good luck


diff --git a/node_modules/react-native-uitextview/ios/RNUITextView.mm b/node_modules/react-native-uitextview/ios/RNUITextView.mm
index a77f196..c928743 100644
--- a/node_modules/react-native-uitextview/ios/RNUITextView.mm
+++ b/node_modules/react-native-uitextview/ios/RNUITextView.mm
@@ -4,10 +4,11 @@
 
 #import <React/RCTConversions.h>
 
-#import <react-native-uitextview/EventEmitters.h>
-#import <react-native-uitextview/Props.h>
-#import <react-native-uitextview/RCTComponentViewHelpers.h>
-#import <react/renderer/textlayoutmanager/RCTAttributedTextUtils.h>
+#import <EventEmitters.h>
+#import <Props.h>
+#import <RCTComponentViewHelpers.h>
+//#import "./generated/RNUITextViewSpec/R"
+#import "React_FabricComponents/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.h"
 
 #import "RCTFabricComponentsPlugins.h"
 
diff --git a/node_modules/react-native-uitextview/ios/RNUITextViewChild.mm b/node_modules/react-native-uitextview/ios/RNUITextViewChild.mm
index 3eebf75..ec4658f 100644
--- a/node_modules/react-native-uitextview/ios/RNUITextViewChild.mm
+++ b/node_modules/react-native-uitextview/ios/RNUITextViewChild.mm
@@ -3,9 +3,9 @@
 #import "RNUITextView.h"
 #import "RNUITextViewChildComponentDescriptor.h"
 
-#import <react-native-uitextview/EventEmitters.h>
-#import <react-native-uitextview/Props.h>
-#import <react-native-uitextview/RCTComponentViewHelpers.h>
+#import "./generated/RNUITextViewSpec/EventEmitters.h"
+#import "./generated/RNUITextViewSpec/Props.h"
+#import <RCTComponentViewHelpers.h>
 
 #import "RCTFabricComponentsPlugins.h"
 #import "Utils.h"
diff --git a/node_modules/react-native-uitextview/ios/RNUITextViewChildShadowNode.h b/node_modules/react-native-uitextview/ios/RNUITextViewChildShadowNode.h
index 838a8b4..d74d9e2 100644
--- a/node_modules/react-native-uitextview/ios/RNUITextViewChildShadowNode.h
+++ b/node_modules/react-native-uitextview/ios/RNUITextViewChildShadowNode.h
@@ -1,8 +1,8 @@
 #pragma once
 
-#include <react-native-uitextview/EventEmitters.h>
-#include <react-native-uitextview/Props.h>
-#include <react-native-uitextview/States.h>
+#include <EventEmitters.h>
+#include <Props.h>
+#include <States.h>
 #include <react/renderer/components/view/ConcreteViewShadowNode.h>
 
 namespace facebook::react {
diff --git a/node_modules/react-native-uitextview/ios/RNUITextViewShadowNode.h b/node_modules/react-native-uitextview/ios/RNUITextViewShadowNode.h
index 23da835..2e76ff6 100644
--- a/node_modules/react-native-uitextview/ios/RNUITextViewShadowNode.h
+++ b/node_modules/react-native-uitextview/ios/RNUITextViewShadowNode.h
@@ -1,11 +1,14 @@
 #pragma once
 
-#include <react-native-uitextview/EventEmitters.h>
-#include <react-native-uitextview/Props.h>
+#include "./generated/RNUITextViewSpec/EventEmitters.h"
+#include "./generated/RNUITextViewSpec/Props.h"
+
 #include <react/renderer/components/view/ConcreteViewShadowNode.h>
-#include <react/renderer/textlayoutmanager/TextLayoutManager.h>
 #include <react/renderer/core/LayoutContext.h>
 #include <react/renderer/core/ShadowNode.h>
+#include "React_FabricComponents/react/renderer/textlayoutmanager/TextLayoutManager.h"
+
+
 
 namespace facebook::react {
 

Same for Expo SDK 52, React Native 0.76.9

Hmmm, interesting. Let me check in with the Expo crew and see what they say!