diff --git a/patches/react-native+0.63.4.patch b/patches/react-native+0.63.4.patch new file mode 100644 index 0000000..fca3f8e --- /dev/null +++ b/patches/react-native+0.63.4.patch @@ -0,0 +1,26 @@ +diff --git a/node_modules/react-native/React/Views/ScrollView/RCTScrollContentView.m b/node_modules/react-native/React/Views/ScrollView/RCTScrollContentView.m +index cf6a0b1..4d187db 100644 +--- a/node_modules/react-native/React/Views/ScrollView/RCTScrollContentView.m ++++ b/node_modules/react-native/React/Views/ScrollView/RCTScrollContentView.m +@@ -14,13 +14,20 @@ + + @implementation RCTScrollContentView + ++- (void)didMoveToWindow ++{ ++ [super didMoveToWindow]; ++ RCTScrollView *scrollView = (RCTScrollView *)self.superview.superview; ++ [scrollView updateContentOffsetIfNeeded]; ++} ++ + - (void)reactSetFrame:(CGRect)frame + { + [super reactSetFrame:frame]; + + RCTScrollView *scrollView = (RCTScrollView *)self.superview.superview; + +- if (!scrollView) { ++ if (!scrollView || !self.window) { + return; + } +