Headless JS is not working

I am trying to add headless JS in my ejected expo app. when the android try to call headless JS function, the debugger will show error something like “AppRegistry is not callable module”.
Please let me know how i can use HeadlessJS or any background service in expokit-android