Skip to content

Commit aa2199a

Browse files
rawrmaanfearmear
authored andcommitted
Add 250ms timeout to close callback to fix UnityAds edge case (#45)
1 parent 9c4ec2d commit aa2199a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

RNIronSourceRewardedVideo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ const addEventListener = (type, handler) => {
3232
// This is a dirty hack that is required by some Ad Networks (Vungle, UnityAds)
3333
// It makes 'ironSourceRewardedVideoClosedByUser' and 'ironSourceRewardedVideoAdRewarded'
3434
// events order match with all other networks
35-
setTimeout(handler);
35+
setTimeout(handler, 250);
3636
}));
3737
break;
3838
default:

0 commit comments

Comments
 (0)