react-native-lf-thread
v0.1.6
Published
Asynchronous Threading Tool Library for react-native
Downloads
7
Maintainers
Readme
react-native-lf-thread
Asynchronous Threading Tool Library for react-native
Installation
Via npm
npm install react-native-lf-thread
Via yarn
yarn add react-native-lf-thread
Usage
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);
});
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library