Skip to content

Calling JS function after bridge has been destroyed #52

Open
@lpongetti

Description

@lpongetti

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions