Android:render's promise's resolve should happen after view's been measured and layouted
This commit is contained in:
parent
ab11ee3372
commit
d1f32b7f5c
@ -92,7 +92,12 @@ public class ShaderPlugin extends DoricJavaPlugin {
|
||||
|
||||
@Override
|
||||
public void onFinish() {
|
||||
promise.resolve();
|
||||
getDoricContext().getRootNode().getNodeView().post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
promise.resolve();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user