diff --git a/android/src/main/java/com/swmansion/rnscreens/utils/ScreenDummyLayoutHelper.kt b/android/src/main/java/com/swmansion/rnscreens/utils/ScreenDummyLayoutHelper.kt index 7714ef7d30..d5214d832b 100644 --- a/android/src/main/java/com/swmansion/rnscreens/utils/ScreenDummyLayoutHelper.kt +++ b/android/src/main/java/com/swmansion/rnscreens/utils/ScreenDummyLayoutHelper.kt @@ -5,6 +5,7 @@ import android.util.Log import android.view.View import androidx.appcompat.widget.Toolbar import androidx.coordinatorlayout.widget.CoordinatorLayout +import com.facebook.jni.annotations.DoNotStrip import com.facebook.react.bridge.LifecycleEventListener import com.facebook.react.bridge.ReactApplicationContext import com.facebook.react.uimanager.PixelUtil @@ -18,6 +19,7 @@ import java.lang.ref.WeakReference * See https://github.com/software-mansion/react-native-screens/pull/2169 * for more detailed description of the issue this code solves. */ +@DoNotStrip internal class ScreenDummyLayoutHelper( reactContext: ReactApplicationContext, ) : LifecycleEventListener { @@ -129,6 +131,7 @@ internal class ScreenDummyLayoutHelper( * @param fontSize font size value as passed from JS * @return header height in dp as consumed by Yoga */ + @DoNotStrip private fun computeDummyLayout( fontSize: Int, isTitleEmpty: Boolean, @@ -210,6 +213,7 @@ internal class ScreenDummyLayoutHelper( // dummy view hierarchy. private var weakInstance = WeakReference(null) + @DoNotStrip @JvmStatic fun getInstance(): ScreenDummyLayoutHelper? = weakInstance.get() }