feat:fix when reloading call onCreate and onShow

This commit is contained in:
pengfei.zhou
2020-02-29 15:00:46 +08:00
committed by osborn
parent eb6ba3ee36
commit d713b04d51
4 changed files with 7 additions and 2 deletions

View File

@@ -92,7 +92,8 @@ - (void)reload:(NSString *)script {
self.rootNode.viewId = nil;
self.script = script;
[self.driver createContext:self.contextId script:script source:self.source];
[self callEntity:DORIC_ENTITY_INIT, self.initialParams, nil];
[self callEntity:DORIC_ENTITY_CREATE, nil];
[self callEntity:DORIC_ENTITY_INIT, self.initialParams, self.extra, nil];
[self onShow];
}