Android:render's promise's resolve should happen after view's been measured and layouted

This commit is contained in:
pengfei.zhou 2020-04-09 14:11:42 +08:00 committed by osborn
parent ab11ee3372
commit d1f32b7f5c

View File

@ -92,10 +92,15 @@ public class ShaderPlugin extends DoricJavaPlugin {
@Override
public void onFinish() {
getDoricContext().getRootNode().getNodeView().post(new Runnable() {
@Override
public void run() {
promise.resolve();
}
});
}
});
}
@DoricMethod
public void command(final JSObject jsObject, final DoricPromise doricPromise) {