Skip to content

Commit

Permalink
comment the override of safearea
Browse files Browse the repository at this point in the history
  • Loading branch information
rghorbani committed Mar 19, 2018
1 parent 63939aa commit 034546c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions ios/reactnativecommon/safearea/SafeAreaManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ - (void)windowSafeAreaDidChange {
UIEdgeInsets currentSafeAreaInsets = [self getCurrentSafeAreaInsets];
if (!UIEdgeInsetsEqualToEdgeInsets(currentSafeAreaInsets, _cachedSafeAreaInsets)) {
_cachedSafeAreaInsets = currentSafeAreaInsets;

NSUInteger listenerCount = [[self valueForKey:@"_listenerCount"] unsignedIntegerValue];
if (listenerCount > 0) {
[self sendEventWithName:SafeAreaInsetsDidChangeEvent body:[self getResultDicFromSafeArea:_cachedSafeAreaInsets]];
Expand Down Expand Up @@ -84,7 +84,7 @@ - (void)applySizzles {
}

- (void)_swz_safeAreaInsetsDidChange {
_swz_safeAreaInsetsDidChange_orig(self, _cmd);
// _swz_safeAreaInsetsDidChange_orig(self, _cmd);
[[NSNotificationCenter defaultCenter] postNotificationName:UIWindowSafeAreaInsetsDidChangeNotification object:nil];
}

Expand All @@ -106,4 +106,3 @@ - (NSDictionary*)getResultDicFromSafeArea:(UIEdgeInsets)safeAreaInsets {
}

@end

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-common",
"version": "0.17.1",
"version": "0.17.2",
"description": "React Native common components",
"main": "src/index.js",
"scripts": {
Expand Down

0 comments on commit 034546c

Please sign in to comment.