mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Add config for avoiding JNI refs
Summary: @public Adds `YogaConfig#avoidGlobalJNIRefs` to control whether nodes created with a config will use weak global JNI refs. Used for experimentation. Reviewed By: SidharthGuglani Differential Revision: D14149982 fbshipit-source-id: c777c8b3af2167d96154db5aa6afec1476dac35b
This commit is contained in:
committed by
Facebook Github Bot
parent
17a27facc5
commit
d53bfed9bb
@@ -22,6 +22,7 @@ public class YogaConfig {
|
||||
long mNativePointer;
|
||||
private YogaLogger mLogger;
|
||||
private YogaNodeCloneFunction mYogaNodeCloneFunction;
|
||||
public boolean avoidGlobalJNIRefs = false;
|
||||
|
||||
private native long jni_YGConfigNew();
|
||||
public YogaConfig() {
|
||||
|
||||
Reference in New Issue
Block a user