mergeInto(LibraryManager.library, {
    ReactCallback: function(componentId, event, params) {
        if (!(window.dispatchReactUnityEvent)) {
          console.log("window.dispatchReactUnityEvent is undefined: " + componentId + ", " + event);
          return;
        }
        
        window.dispatchReactUnityEvent(
          "callFVSUnity_" + UTF8ToString(componentId),
          UTF8ToString(event),
          UTF8ToString(params),
        );
    },
})