Asynchronous Threading Tool Library for react-native
npm install react-native-lf-thread
yarn add react-native-lf-thread
import { asyncFn } from 'react-native-lf-thread';
// ...
const bigDataComputing = (params) => {
// ... do some heavy computing
const results = doSomething(params);
return results;
}
asyncFn(bigDataComputing, (results)=>{
// Synchronizing data to the UI
console.log(results);
});
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT
Made with create-react-native-library