Hi everyone. In my application I have a background task registered with TaskManager and it’s called every n. milliseconds (with start location updates for example).
Now, how can I update a view of a component from this task? I’ve included Redux too in my project for other reasons and I could for example import and recreate the store in this task (it uses HeadlessJS as far as I know), the problem is that the store created in this situation is a different store than the one used by the app… and it would be a mess.
There is some sort of way to do this? I could clearly use a storage (asyncstorage for example), but then I’d need to do some sort of polling over those async storage values and I absolutely don’t want to do that!