We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45fcce8 commit 2a1d10dCopy full SHA for 2a1d10d
packages/react-native/Libraries/SwiftExtensions/RCTReactViewController.m
@@ -61,9 +61,12 @@ - (void)tapGesture:(UITapGestureRecognizer*)recognizer {
61
62
- (void)updateProps:(NSDictionary *)newProps {
63
RCTRootView *rootView = (RCTRootView *)self.view;
64
- if (![rootView.appProperties isEqualToDictionary:newProps]) {
+ if (rootView.appProperties == newProps) {
65
+ return;
66
+ }
67
+
68
+ if (newProps != nil && ![rootView.appProperties isEqualToDictionary:newProps]) {
69
[rootView setAppProperties:newProps];
70
}
71
-
72
@end
packages/react-native/Libraries/WindowManager/WindowManager.d.ts
@@ -1,6 +1,6 @@
1
export interface WindowStatic {
2
id: String;
3
- open (props: Object): Promise<void>;
+ open (props?: Object): Promise<void>;
4
update (props: Object): Promise<void>;
5
close (): Promise<void>;
6
0 commit comments