mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
created a new class YogaNodeJNI which extends YogaNodeJNIBase and using YogaNodeJNi for new object creation
Summary: Added a child class of YogaNodeJNIBase which will be used to separate layout outputs transfer logic. This change set is for adding experiment for layout outputs batching using a float array Reviewed By: davidaurelio Differential Revision: D14368098 fbshipit-source-id: e0f10fb61cd09ee47cf9ce41fb400f4cfb3dd795
This commit is contained in:
1 parent
cb0d61d533
commit
000bf3d936
3 files changed
+24
-3
No files matched your search
@@ -10,11 +10,11 @@ import javax.annotation.Nullable;
|
||||
|
||||
public abstract class YogaNode {
|
||||
public static YogaNode create() {
|
||||
return new YogaNodeJNIBase();
|
||||
return new YogaNodeJNI();
|
||||
}
|
||||
|
||||
public static YogaNode create(YogaConfig config) {
|
||||
return new YogaNodeJNIBase(config);
|
||||
return new YogaNodeJNI(config);
|
||||
}
|
||||
|
||||
public abstract void reset();
|
||||
|
||||
Reference in new issue
Block a user