Skip to content

Commit

Permalink
revert(ios/rndeviceinfo): removing ios listener stubs
Browse files Browse the repository at this point in the history
removes added stubs to allow NativeEventEmitter to work on iOS again

resolves #1301
  • Loading branch information
WictorWilnd authored and mikehardy committed Jan 20, 2023
1 parent e8b9480 commit 86a1f3c
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ios/RNDeviceInfo/RNDeviceInfo.m
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ - (void)stopObserving {
hasListeners = NO;
}

RCT_EXPORT_METHOD(addListener : (NSString *)eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}

RCT_EXPORT_METHOD(removeListeners : (double)count) {
// Keep: Required for RN built in Event Emitter Calls.
}

- (DeviceType) getDeviceType
{
switch ([[UIDevice currentDevice] userInterfaceIdiom]) {
Expand Down

0 comments on commit 86a1f3c

Please sign in to comment.