mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-22 19:48:56 +08:00
RCTSurface: Calling start is now required to start the Surface
Summary: So, it does not start itself automatically right after instantiation. (Classic RCTSurface still kinda start itself automatically but only because start/stop concept is not implemented for this yet.) Reviewed By: sahrens Differential Revision: D13461294 fbshipit-source-id: 05430688f69a0d9bf75d03e6d25f02ccd5d3176a
This commit is contained in:
committed by
Facebook Github Bot
parent
d8fcb7f165
commit
1bd66d9aa9
@@ -38,6 +38,8 @@
|
||||
moduleName:moduleName
|
||||
initialProperties:properties];
|
||||
|
||||
[surface start];
|
||||
|
||||
state = [RCTSurfaceBackedComponentState newWithSurface:surface];
|
||||
|
||||
CKComponentScope::replaceState(scope, state);
|
||||
|
||||
Reference in New Issue
Block a user