mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Expose UseWebDefaults to java
Reviewed By: astreet Differential Revision: D4779743 fbshipit-source-id: 65a4184af6fb959fefff5c2014522c551ca440d5
This commit is contained in:
committed by
Facebook Github Bot
parent
f804af27c2
commit
50a6c4933e
@@ -46,4 +46,9 @@ public class YogaConfig {
|
||||
public void setExperimentalFeatureEnabled(YogaExperimentalFeature feature, boolean enabled) {
|
||||
jni_YGConfigSetExperimentalFeatureEnabled(mNativePointer, feature.intValue(), enabled);
|
||||
}
|
||||
|
||||
private native void jni_YGConfigSetUseWebDefaults(long nativePointer, boolean useWebDefaults);
|
||||
public void setUseWebDefaults(boolean useWebDefaults) {
|
||||
jni_YGConfigSetUseWebDefaults(mNativePointer, useWebDefaults);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user