Fabric: RCTSurfaceRegistry now stores Surfaces as weak references

Summary:
@public
RCTSurfaceRegistry always promised this in the documentation but never actually did.

Reviewed By: sahrens

Differential Revision: D9652732

fbshipit-source-id: f3d06b95192e024273dc0e3a1c2753ca92370338
This commit is contained in:
Valentin Shergin 2018-09-07 23:38:51 -07:00 коммит произвёл Facebook Github Bot
Родитель 10181f31bd
Коммит d2186081b3
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -20,7 +20,7 @@
{ {
if (self = [super init]) { if (self = [super init]) {
_registry = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsIntegerPersonality | NSPointerFunctionsOpaqueMemory _registry = [NSMapTable mapTableWithKeyOptions:NSPointerFunctionsIntegerPersonality | NSPointerFunctionsOpaqueMemory
valueOptions:NSPointerFunctionsObjectPersonality]; valueOptions:NSPointerFunctionsObjectPersonality | NSPointerFunctionsWeakMemory];
} }
return self; return self;