From 9f51617e12a64590e0a9bdc52d2277b8e3443f4d Mon Sep 17 00:00:00 2001 From: Riccardo Cipolleschi Date: Fri, 18 Mar 2022 10:13:33 +0000 Subject: [PATCH] Use empty dicts instead of nil --- docs/new-architecture-app-renderer-ios.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/new-architecture-app-renderer-ios.md b/docs/new-architecture-app-renderer-ios.md index 828931177cd..3f2e16602ea 100644 --- a/docs/new-architecture-app-renderer-ios.md +++ b/docs/new-architecture-app-renderer-ios.md @@ -74,12 +74,12 @@ The way to render your app with Fabric depends on your setup. Here is an example UIView *rootView = [[RCTFabricSurfaceHostingProxyRootView alloc] initWithBridge:_bridge moduleName:<#moduleName#> - initialProperties:nil]; + initialProperties:@{}]; #else // Current implementation to define rootview. RCTRootView *rootView = [[RCTRootView alloc] initWithBridge:bridge moduleName:<#moduleName#> - initialProperties:nil]; + initialProperties:@{}]; #endif ```