Questions tagged [rctbridge]
10 questions
8
votes
1 answer
RCTModernEventEmitter fires twice for android fabric component
I am trying to create a fabric component for android, specifically I want to use the onClickHandler of the button component and pass a callback to react-native side via RCTModernEventEmitter. It works fine for iOS but for android the…

BraveEvidence
- 53
- 11
- 45
- 119
5
votes
1 answer
Tried to synchronously call function {promiseMethodWrapper} from a different thread
This is the first time I'm trying the bridging of react-native and a native iOS app.
In my react-native iOS project, I've created a swift file (that created a bridging header) and in that swift file I've created a sample method to test first:
import…

Chaudhry Talha
- 7,231
- 11
- 67
- 116
4
votes
2 answers
React Native ios build error 'React/RCTBridgeModule.h' file not found with react-native-document-picker
I am unable to build iOS App because of the issue - 'React/RCTBridgeModule.h' file not found
"react": "^16.13.1",
"react-native": "^0.63.4",
"react-native-document-picker": "^4.2.0"
iOS target -- 10.0
I already tried a few of the suggested…

Narendra Singh
- 3,990
- 5
- 37
- 78
2
votes
1 answer
ReactNative iOS sendEventWithName cause "RCTCallableJSModules is not set"
i've the following situation.
2 identical react-native apps (differs only for bundleId, app icon etc) structured like this:
-> project structure
My goal it's to emit an event from native side to the JS layer through the bridge when a push…

se09deluca
- 61
- 7
2
votes
0 answers
Attempted to register RCTBridgeModule class RCTWebSocketModule
Attempted to register RCTBridgeModule class RCTWebSocketModule for the name 'WebSocketModule', but the name was already registered by class RCTWebSocketModule.
This error occurs when I run the iOS app using the command react-native run-ios.

P.ShiR
- 21
- 1
- 3
1
vote
2 answers
Equivalent of console.log on Android
I am developing using React Native CLI as I need some Native Libraries in Android and iOS. Because of this I needed to use react-native link packagename
I then find out that the exposed methods for the Native Module in that package is not enough…

preston
- 3,721
- 6
- 46
- 78
0
votes
0 answers
IOS test flight crashes on launch: RCTFatal + 668
React native version: 0.61.5
It cause random crash when app starts, it works with simulator, please help!
Last Exception Backtrace:
0 CoreFoundation 0x1b9036248 _exceptionPreprocess + 164 (NSException.m:202)
1 libobjc.A.dylib 0x1b23f7a68…

sandeep
- 51
- 1
- 2
0
votes
1 answer
Reanimated Mismatch between JavaScript part and native part of Reanimated 3.0.0-rc.9 vs. undefined
I am trying to show a react native screen from my native(swift code) UIViewController using RCTRootView. I keep getting this mismatch error that I think is related to expo, I have tried re-registering the component in various ways, as well as…

Noel Obaseki
- 60
- 1
- 4
- 16
0
votes
0 answers
Getting error for Expected expression in Xcode for RCTBridge file
{
__block NSArray *result;
dispatch_sync(RCTModuleClassesSyncQueue, ^{w});
return result;
}
0
votes
1 answer
RCT bridging with react native and objective C
I have been following this tutorial, which is talking about how to communicated from React Native and objective C. I followed the tutorial, and got a good result. The problem started when I wanted to add a new function called sendData. This would be…

Mannan Bhardwaj
- 126
- 5