Skip to content

[New Architecture] Error: Exception in HostFunction: <unknown>, js engine: hermes #643

@huszzsolt

Description

@huszzsolt

We are getting
Exception in HostFunction: <unknown>, js engine: hermes.

This happens on New Architecture only.

Steps to reproduce:

   npx @react-native-community/cli init test --version 0.79.5
   yarn add react-native-fbsdk-next

and replace index.js with:

import { AppRegistry } from 'react-native';
import { Settings } from 'react-native-fbsdk-next';

Settings.setAppID('//facebookid//');
Settings.initializeSDK(true);

Settings.setDataProcessingOptions([], 0, 0);


AppRegistry.registerComponent("test", () => ()=>null);

Resulting on iOS:

Image

This issue was noticed using Segment:


import { createClient } from '@segment/analytics-react-native';
import { FacebookAppEventsPlugin } from '@segment/analytics-react-native-plugin-facebook-app-events';

const segmentClient = createClient({
   .... 
   }
);

segmentClient.add({ plugin: new FacebookAppEventsPlugin() });  //  <<<< results in error


Image

But it is reproducible on a new&clean app-build as described above on New Architecture only.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions