mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add standalone factory classes which generate YogaNode + YogaConfig
Summary: Add standalone factory classes which generate YogaNode + YogaConfig, later on it will allow us to separate the yoga interface and actual implementation buck targets (see D17266406) We've done such breakage change previously in D14122974. Reviewed By: SidharthGuglani Differential Revision: D17258196 fbshipit-source-id: b12f1a0d23c3f82b14cee0731a1daf1c015ee32c
This commit is contained in:
1 parent
83a16b16c9
commit
b8d1dda57a
2 files changed
+18
No files matched your search
@@ -0,0 +1,11 @@
|
||||
package com.facebook.yoga;
|
||||
|
||||
public abstract class YogaNodeFactory {
|
||||
public static YogaNode create() {
|
||||
return new YogaNodeJNIFinalizer();
|
||||
}
|
||||
|
||||
public static YogaNode create(YogaConfig config) {
|
||||
return new YogaNodeJNIFinalizer(config);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user