diff --git a/patches/react-native-screens+3.32.0.patch b/patches/react-native-screens+3.32.0.patch new file mode 100644 index 00000000..bbeff0b5 --- /dev/null +++ b/patches/react-native-screens+3.32.0.patch @@ -0,0 +1,13 @@ +diff --git a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStack.kt b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStack.kt +index 458465c..73a2d85 100644 +--- a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStack.kt ++++ b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ScreenStack.kt +@@ -316,7 +316,7 @@ class ScreenStack(context: Context?) : ScreenContainer(context) { + } + + private fun obtainDrawingOp(): DrawingOp = +- if (drawingOpPool.isEmpty()) DrawingOp() else drawingOpPool.removeLast() ++ if (drawingOpPool.isEmpty()) DrawingOp() else drawingOpPool.removeAt(drawingOpPool.size - 1) + + private inner class DrawingOp { + var canvas: Canvas? = null