For Android (although it seems you have this solved) you can use Headless. js. For iOS you have a few options, depending on your task: react-native-background-fetch .
Read moreWhat is headless in react-native?
Headless JS is a way to run tasks in JavaScript while your app is in the background . It can be used, for example, to sync fresh data, handle push notifications, or play music.19 Oca 2022
Read moreWhat is headless in react?
A headless user interface component is a component that offers maximum visual flexibility by providing no interface . This might sound like providing a user interface pattern without providing a user interface. That’s funny but true. I will demonstrate this pattern with React but this pattern is not specific to React.
Read moreHow do you fix react-native is not recognized as an internal or external command?
‘react-native’ is not recognized as an internal or external command, operable program or batch file
Read moreHow do I install react-native in Windows 10?
Get started with React Native by installing required tools
Read moreHow do I manually link in react-native?
You have two options to link libraries with your Xcode/Android project. Manual Setup: It’s actually very simple.
Read more