mirror of
https://github.com/status-im/react-native.git
synced 2025-01-15 20:15:11 +00:00
Expose setPointScaleFactor to java
Reviewed By: gkassabli Differential Revision: D4953835 fbshipit-source-id: b1f97d9ec1bb78ccf7f53131fce87955fe66eb02
This commit is contained in:
parent
f71e3b80b9
commit
19e1ef9042
@ -51,4 +51,9 @@ public class YogaConfig {
|
|||||||
public void setUseWebDefaults(boolean useWebDefaults) {
|
public void setUseWebDefaults(boolean useWebDefaults) {
|
||||||
jni_YGConfigSetUseWebDefaults(mNativePointer, useWebDefaults);
|
jni_YGConfigSetUseWebDefaults(mNativePointer, useWebDefaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private native void jni_YGConfigSetPointScaleFactor(long nativePointer, float pixelsInPoint);
|
||||||
|
public void setPointScaleFactor(float pixelsInPoint) {
|
||||||
|
jni_YGConfigSetPointScaleFactor(mNativePointer, pixelsInPoint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -398,6 +398,11 @@ void jni_YGConfigSetUseWebDefaults(alias_ref<jobject>, jlong nativePointer, jboo
|
|||||||
YGConfigSetUseWebDefaults(config, useWebDefaults);
|
YGConfigSetUseWebDefaults(config, useWebDefaults);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void jni_YGConfigSetPointScaleFactor(alias_ref<jobject>, jlong nativePointer, jfloat pixelsInPoint) {
|
||||||
|
const YGConfigRef config = _jlong2YGConfigRef(nativePointer);
|
||||||
|
YGConfigSetPointScaleFactor(config, pixelsInPoint);
|
||||||
|
}
|
||||||
|
|
||||||
jint jni_YGNodeGetInstanceCount(alias_ref<jclass> clazz) {
|
jint jni_YGNodeGetInstanceCount(alias_ref<jclass> clazz) {
|
||||||
return YGNodeGetInstanceCount();
|
return YGNodeGetInstanceCount();
|
||||||
}
|
}
|
||||||
@ -492,6 +497,7 @@ jint JNI_OnLoad(JavaVM *vm, void *) {
|
|||||||
YGMakeNativeMethod(jni_YGConfigFree),
|
YGMakeNativeMethod(jni_YGConfigFree),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetExperimentalFeatureEnabled),
|
YGMakeNativeMethod(jni_YGConfigSetExperimentalFeatureEnabled),
|
||||||
YGMakeNativeMethod(jni_YGConfigSetUseWebDefaults),
|
YGMakeNativeMethod(jni_YGConfigSetUseWebDefaults),
|
||||||
|
YGMakeNativeMethod(jni_YGConfigSetPointScaleFactor),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user