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,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) {
|
||||
|
Reference in New Issue
Block a user