Merge pull request #938 from taxidermic/fix-races-bug

fixes races bug in react-native > 0.52
This commit is contained in:
Chris Bianca
2018-04-09 08:07:00 +01:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ RCT_EXPORT_METHOD(setAnalyticsCollectionEnabled:(BOOL) enabled) {
}
RCT_EXPORT_METHOD(setCurrentScreen:(NSString *) screenName screenClass:(NSString *) screenClassOverriew) {
dispatch_async(dispatch_get_main_queue(), ^{
dispatch_sync(dispatch_get_main_queue(), ^{
[FIRAnalytics setScreenName:screenName screenClass:screenClassOverriew];
});
}