A library to perform background tasks in react native

I need to perform a long running task in react native for iOS, android has a Headless JS implementation which allows you to create a long running task but there is no equivalent for iOS, is there any piece of code that I can look at that allows me to run tasks when the app is in the background in iOS?

I do not need to periodically execute a task or schedule it, I have checked out react-native-background-fetch and react-native-background-task which are for periodic tasks.