Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
Update ScreenBrightness.m
Browse files Browse the repository at this point in the history
  • Loading branch information
alexlevy0 authored Nov 27, 2019
1 parent 7fb21c4 commit 4998463
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions ios/ScreenBrightness/ScreenBrightness.m
Original file line number Diff line number Diff line change
@@ -1,23 +1,20 @@
//
// ScreenBrightness.m
// ScreenBrightness
//
// Created by Atticus White on 12/7/15.
// Copyright © 2015 Atticus White. All rights reserved.
//

#import "ScreenBrightness.h"
#if __has_include(<React/RCTBridgeModule.H>)
#else
#import "RCTBridgeModule.h"
#import "RCTBridge.h"
#import "RCTEventDispatcher.h"
#endif

@implementation ScreenBrightness

RCT_EXPORT_MODULE();

+ (BOOL)requiresMainQueueSetup
{
return NO;
}

- (dispatch_queue_t)methodQueue
{
return dispatch_get_main_queue();
}


RCT_EXPORT_METHOD(getBrightness:(RCTPromiseResolveBlock)resolve
getScreenBrightnessRejector:(RCTPromiseRejectBlock)reject) {

Expand Down

0 comments on commit 4998463

Please # to comment.