Base on https://github.com/embiem/react-canvas-draw
Install Via NPM:
npm install --save reactdrawstream
import import {ReactDrawStream} from 'reactdrawstream';
...
<ReactDrawStream onGetStream={(stream) => {
sendStream(stream)
}} />
...
- onGetStream: function called once the stream is ready Please reefer to : it also inherits all of the props listed on: https://github.com/embiem/react-canvas-draw#props