Over the last several years, the functional gap for common applications between mobile and desktop has shrunk. Users are demanding richer experiences and more robust processing than the trivial applications that originally existed. To support this, the hardware had to be upgraded to support the software demands. Most mobile devices today are powered by multi-core processors, and the operating systems now provide developers easy abstractions to execute code in the background without locking the application.
This recipe will cover the use of iOS's Grand Central Dispatch to execute asynchronous background processing on a new thread and communicate back to our React Native application when the processing is complete.