Permalink
Browse files

export event constants

  • Loading branch information...
ajwhite committed Nov 17, 2017
1 parent 32b40e4 commit 30eb5950ce966c9053c3a3080536179a9c7ca269
Showing with 6 additions and 0 deletions.
  1. +6 −0 ios/DeviceBattery/DeviceBattery.m
@@ -33,6 +33,11 @@ - (void)dealloc
return @[BATTERY_CHANGE_EVENT];
}
- (NSDictionary *)constantsToExport
{
return @{@"BATTERY_CHANGE_EVENT": BATTERY_CHANGE_EVENT};
}
// UIDevice (UIKit) may only be accessed on main thread
+(BOOL)requiresMainQueueSetup
{
@@ -75,3 +80,4 @@ -(void)batteryLevelChanged:(NSNotification*)notification {
}
@end

0 comments on commit 30eb595

Please sign in to comment.