Childprocess implemented
npm install react-native-childprocess
or
yarn add react-native-childprocess
import {spawn, kill} from 'react-native-childprocess'
let cmdID;
export async function start(){
cmdID = await spawn('/sbin/ping', ['google.com'], {
pwd: project.path,
stdout: (output) => {
console.log('>>>', output)
}
});
}
export async function stop(){
kill(cmdID);
}
See the contributing guide to learn how to contribute to the repository and the development workflow.
MIT