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

Error with RCTBridgeModule #61

Open
l2succes opened this issue Apr 18, 2023 · 1 comment
Open

Error with RCTBridgeModule #61

l2succes opened this issue Apr 18, 2023 · 1 comment

Comments

@l2succes
Copy link

l2succes commented Apr 18, 2023

Hi! 👋

Firstly, thanks for your work on this project! 🙂

Today I used patch-package to patch react-native-exit-app@1.1.0 for the project I'm working on.

I was seeing the following error when compiling

Declaration of 'RCTBridgeModule' must be imported from module 'React.RCTBridge' before it is required

Here is the diff that solved my problem:

diff --git a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.m b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.m
index 44d27a2..3a61a49 100644
--- a/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.m
+++ b/node_modules/react-native-exit-app/ios/RNExitApp/RNExitApp.m
@@ -1,5 +1,5 @@
 #import <UIKit/UIKit.h>
-#import "RCTBridgeModule.h"
+#import <React/RCTBridgeModule.h>
 
 
 @interface RNExitApp : NSObject <RCTBridgeModule>

This issue body was partially generated by patch-package.

@wumke
Copy link
Owner

wumke commented Jun 27, 2023

Is this solved in v2.0.0?

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

2 participants