I'm creating a ReactNative app using redux-saga, but I have some problem to use some of the plugins in combination with redux-saga.
My code looks like that. How can I execute the IdsAvailable generator??
function *IdsAvailable(pushToken, userId){
yield put({ type: 'PUSH_TOKEN_AVAILABLE', pushToken })
}
OneSignal.addEventListener('ids', function * ({ pushToken, userId }){
// this of course dosn't work
IdsAvailable(pushToken, userId);
})