diff --git a/React/Fabric/RCTSurfaceRegistry.mm b/React/Fabric/RCTSurfaceRegistry.mm index d2aa3bde4..047b1dbaa 100644 --- a/React/Fabric/RCTSurfaceRegistry.mm +++ b/React/Fabric/RCTSurfaceRegistry.mm @@ -20,7 +20,7 @@ { if (self = [super init]) { _registry = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsIntegerPersonality | NSPointerFunctionsOpaqueMemory - valueOptions:NSPointerFunctionsObjectPersonality]; + valueOptions:NSPointerFunctionsObjectPersonality | NSPointerFunctionsWeakMemory]; } return self;