浏览代码

Fixes iOS crash on overlay orientation change

yogevbd 6 年前
父节点
当前提交
219582efa5
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      lib/ios/RNNRootViewController.m

+ 2
- 1
lib/ios/RNNRootViewController.m 查看文件

@@ -14,7 +14,7 @@
14 14
 @property (nonatomic) BOOL _statusBarHidden;
15 15
 @property (nonatomic) BOOL isExternalComponent;
16 16
 @property (nonatomic) BOOL _optionsApplied;
17
-@property (nonatomic, weak) void (^rotationBlock)(void);
17
+@property (nonatomic, copy) void (^rotationBlock)(void);
18 18
 @end
19 19
 
20 20
 @implementation RNNRootViewController
@@ -68,6 +68,7 @@
68 68
 -(void)viewDidDisappear:(BOOL)animated {
69 69
 	[super viewDidDisappear:animated];
70 70
 	[self.eventEmitter sendComponentDidDisappear:self.componentId componentName:self.componentName];
71
+	_rotationBlock = nil;
71 72
 }
72 73
 
73 74
 - (void)viewDidLoad {