Not sure if this will work but worth a try.
If it just works, the only minor issue might how the threads are named by default, ie. threadId:
/**
* Registers the current thread with the native module.
*
* @param threadName The name of the thread to register. Defaults to the current thread ID.
*/
export function registerThread(threadName: string = String(threadId)): void {
native.registerThread(threadName);
}