File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
packages/react-native/Libraries Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -61,9 +61,12 @@ - (void)tapGesture:(UITapGestureRecognizer*)recognizer {
61
61
62
62
- (void )updateProps : (NSDictionary *)newProps {
63
63
RCTRootView *rootView = (RCTRootView *)self.view ;
64
- if (![rootView.appProperties isEqualToDictionary: newProps]) {
64
+ if (rootView.appProperties == newProps) {
65
+ return ;
66
+ }
67
+
68
+ if (newProps != nil && ![rootView.appProperties isEqualToDictionary: newProps]) {
65
69
[rootView setAppProperties: newProps];
66
70
}
67
71
}
68
-
69
72
@end
Original file line number Diff line number Diff line change 1
1
export interface WindowStatic {
2
2
id : String ;
3
- open ( props : Object ) : Promise < void > ;
3
+ open ( props ? : Object ) : Promise < void > ;
4
4
update ( props : Object ) : Promise < void > ;
5
5
close ( ) : Promise < void > ;
6
6
}
You can’t perform that action at this time.
0 commit comments