Skip to content

Commit

Permalink
fix: Ensure warnings are not shown on React Native 0.65 (#487 by @lub…
Browse files Browse the repository at this point in the history
  • Loading branch information
lubomyr committed Aug 23, 2021
1 parent 371acf9 commit ac0ed65
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
Expand Up @@ -59,4 +59,14 @@ public void getCurrentState(final String requestedInterface, final Promise promi
public void onAmazonFireDeviceConnectivityChanged(boolean isConnected) {
mConnectivityReceiver.setIsInternetReachableOverride(isConnected);
}

@ReactMethod
public void addListener(String eventName) {
// Keep: Required for RN built in Event Emitter Calls.
}

@ReactMethod
public void removeListeners(Integer count) {
// Keep: Required for RN built in Event Emitter Calls.
}
}
8 changes: 8 additions & 0 deletions ios/RNCNetInfo.m
Expand Up @@ -251,4 +251,12 @@ - (NSString *)bssid
}
#endif

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

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

@end

0 comments on commit ac0ed65

Please sign in to comment.