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

Calling JS function after bridge has been destroyed #52

Open
lpongetti opened this issue Oct 26, 2018 · 1 comment
Open

Calling JS function after bridge has been destroyed #52

lpongetti opened this issue Oct 26, 2018 · 1 comment

Comments

@lpongetti
Copy link

lpongetti commented Oct 26, 2018

Hi,
i call a native module in my thread but the callback doesn't response
All works perfectly, also if i call other functions of this module, but with this the callback was never emitted.

net.query('SELECT LinkedEntityId, ContentDocument.LatestPublishedVersion.VersionData FROM ContentDocumentLink WHERE LinkedEntityId IN (SELECT Id FROM SM_News__c WHERE Active__c = true)', (resultQuery: any) => console.log(resultQuery));

In logcat i saw this.

W/unknown:ReactNative: Calling JS function after bridge has been destroyed: RCTDeviceEventEmitter.emit(["websocketFailed",{"message":"connect timed out","id":5}])

"react": "^16.4.1",
"react-native": "^0.55.4",
"react-native-threads": "0.0.13",

In main thread works.

What can it be?
Thanks

@Traviskn
Copy link
Contributor

the websocketFailed part of your error message is interesting, are you running a remote debugger by chance? you will need to disable remote debugging in order for react-native-threads to work.

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