-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Expensify:main' into fix-53003-on-room-invite-sms-shown
- Loading branch information
Showing
394 changed files
with
2,014 additions
and
2,558 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
57 changes: 57 additions & 0 deletions
57
patches/react-native-screens+3.34.0+003+fabric-flat-list-fix.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
diff --git a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt | ||
index 9d08d39..146b9c2 100644 | ||
--- a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt | ||
+++ b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt | ||
@@ -18,6 +18,7 @@ import com.facebook.react.uimanager.PixelUtil | ||
import com.facebook.react.uimanager.UIManagerHelper | ||
import com.facebook.react.uimanager.UIManagerModule | ||
import com.swmansion.rnscreens.events.HeaderHeightChangeEvent | ||
+import com.swmansion.rnscreens.ext.isInsideScrollViewWithRemoveClippedSubviews | ||
|
||
@SuppressLint("ViewConstructor") // Only we construct this view, it is never inflated. | ||
class Screen( | ||
@@ -310,6 +311,16 @@ class Screen( | ||
startTransitionRecursive(child.toolbar) | ||
} | ||
if (child is ViewGroup) { | ||
+ // a combination of https://github.com/software-mansion/react-native-screens/pull/2307/files and https://github.com/software-mansion/react-native-screens/pull/2383/files | ||
+ // The children are miscounted when there's a FlatList with | ||
+ // removeClippedSubviews set to true (default). | ||
+ // We add a simple view for each item in the list to make it work as expected. | ||
+ // See https://github.com/software-mansion/react-native-screens/issues/2282 | ||
+ if (child.isInsideScrollViewWithRemoveClippedSubviews()) { | ||
+ for (j in 0 until child.childCount) { | ||
+ child.addView(View(context)) | ||
+ } | ||
+ } | ||
startTransitionRecursive(child) | ||
} | ||
} | ||
diff --git a/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt | ||
new file mode 100644 | ||
index 0000000..9d9fbfd | ||
--- /dev/null | ||
+++ b/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/ext/ViewExt.kt | ||
@@ -0,0 +1,21 @@ | ||
+package com.swmansion.rnscreens.ext | ||
+ | ||
+import android.view.View | ||
+import android.view.ViewGroup | ||
+import com.facebook.react.views.scroll.ReactHorizontalScrollView | ||
+import com.facebook.react.views.scroll.ReactScrollView | ||
+import com.swmansion.rnscreens.ScreenStack | ||
+ | ||
+internal fun View.isInsideScrollViewWithRemoveClippedSubviews(): Boolean { | ||
+ if (this is ReactHorizontalScrollView || this is ReactScrollView) { | ||
+ return false | ||
+ } | ||
+ var parentView = this.parent | ||
+ while (parentView is ViewGroup && parentView !is ScreenStack) { | ||
+ if (parentView is ReactScrollView) { | ||
+ return parentView.removeClippedSubviews | ||
+ } | ||
+ parentView = parentView.parent | ||
+ } | ||
+ return false | ||
+} | ||
\ No newline at end of file |
156 changes: 156 additions & 0 deletions
156
patches/react-native-screens+3.34.0+004+ios-custom-animations-native-transitions.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,156 @@ | ||
diff --git a/node_modules/react-native-screens/ios/RNSScreenStackAnimator.mm b/node_modules/react-native-screens/ios/RNSScreenStackAnimator.mm | ||
index abb2cf6..fb81d52 100644 | ||
--- a/node_modules/react-native-screens/ios/RNSScreenStackAnimator.mm | ||
+++ b/node_modules/react-native-screens/ios/RNSScreenStackAnimator.mm | ||
@@ -5,13 +5,14 @@ | ||
|
||
// proportions to default transition duration | ||
static const float RNSSlideOpenTransitionDurationProportion = 1; | ||
-static const float RNSFadeOpenTransitionDurationProportion = 0.2 / 0.35; | ||
-static const float RNSSlideCloseTransitionDurationProportion = 0.25 / 0.35; | ||
-static const float RNSFadeCloseTransitionDurationProportion = 0.15 / 0.35; | ||
-static const float RNSFadeCloseDelayTransitionDurationProportion = 0.1 / 0.35; | ||
+static const float RNSFadeOpenTransitionDurationProportion = 0.2 / 0.5; | ||
+static const float RNSSlideCloseTransitionDurationProportion = 0.25 / 0.5; | ||
+static const float RNSFadeCloseTransitionDurationProportion = 0.15 / 0.5; | ||
+static const float RNSFadeCloseDelayTransitionDurationProportion = 0.1 / 0.5; | ||
// same value is used in other projects using similar approach for transistions | ||
// and it looks the most similar to the value used by Apple | ||
static constexpr float RNSShadowViewMaxAlpha = 0.1; | ||
+static const int UIViewAnimationOptionCurveDefaultTransition = 7 << 16; | ||
|
||
@implementation RNSScreenStackAnimator { | ||
UINavigationControllerOperation _operation; | ||
@@ -22,7 +23,7 @@ - (instancetype)initWithOperation:(UINavigationControllerOperation)operation | ||
{ | ||
if (self = [super init]) { | ||
_operation = operation; | ||
- _transitionDuration = 0.35; // default duration in seconds | ||
+ _transitionDuration = 0.5; // default duration in seconds | ||
} | ||
return self; | ||
} | ||
@@ -129,6 +130,8 @@ - (void)animateSimplePushWithShadowEnabled:(BOOL)shadowEnabled | ||
} | ||
|
||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:^{ | ||
fromViewController.view.transform = leftTransform; | ||
toViewController.view.transform = CGAffineTransformIdentity; | ||
@@ -170,6 +173,8 @@ - (void)animateSimplePushWithShadowEnabled:(BOOL)shadowEnabled | ||
|
||
if (!transitionContext.isInteractive) { | ||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:animationBlock | ||
completion:completionBlock]; | ||
} else { | ||
@@ -203,6 +208,8 @@ - (void)animateSlideFromLeftWithTransitionContext:(id<UIViewControllerContextTra | ||
toViewController.view.transform = rightTransform; | ||
[[transitionContext containerView] addSubview:toViewController.view]; | ||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:^{ | ||
fromViewController.view.transform = leftTransform; | ||
toViewController.view.transform = CGAffineTransformIdentity; | ||
@@ -228,6 +235,8 @@ - (void)animateSlideFromLeftWithTransitionContext:(id<UIViewControllerContextTra | ||
|
||
if (!transitionContext.isInteractive) { | ||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:animationBlock | ||
completion:completionBlock]; | ||
} else { | ||
@@ -251,6 +260,8 @@ - (void)animateFadeWithTransitionContext:(id<UIViewControllerContextTransitionin | ||
[[transitionContext containerView] addSubview:toViewController.view]; | ||
toViewController.view.alpha = 0.0; | ||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:^{ | ||
toViewController.view.alpha = 1.0; | ||
} | ||
@@ -262,6 +273,8 @@ - (void)animateFadeWithTransitionContext:(id<UIViewControllerContextTransitionin | ||
[[transitionContext containerView] insertSubview:toViewController.view belowSubview:fromViewController.view]; | ||
|
||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:^{ | ||
fromViewController.view.alpha = 0.0; | ||
} | ||
@@ -284,6 +297,8 @@ - (void)animateSlideFromBottomWithTransitionContext:(id<UIViewControllerContextT | ||
toViewController.view.transform = topBottomTransform; | ||
[[transitionContext containerView] addSubview:toViewController.view]; | ||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:^{ | ||
fromViewController.view.transform = CGAffineTransformIdentity; | ||
toViewController.view.transform = CGAffineTransformIdentity; | ||
@@ -309,6 +324,8 @@ - (void)animateSlideFromBottomWithTransitionContext:(id<UIViewControllerContextT | ||
|
||
if (!transitionContext.isInteractive) { | ||
[UIView animateWithDuration:[self transitionDuration:transitionContext] | ||
+ delay:0 | ||
+ options:UIViewAnimationOptionCurveDefaultTransition | ||
animations:animationBlock | ||
completion:completionBlock]; | ||
} else { | ||
diff --git a/node_modules/react-native-screens/lib/typescript/fabric/ModalScreenNativeComponent.d.ts b/node_modules/react-native-screens/lib/typescript/fabric/ModalScreenNativeComponent.d.ts | ||
index 28d6463..a1473e1 100644 | ||
--- a/node_modules/react-native-screens/lib/typescript/fabric/ModalScreenNativeComponent.d.ts | ||
+++ b/node_modules/react-native-screens/lib/typescript/fabric/ModalScreenNativeComponent.d.ts | ||
@@ -55,7 +55,7 @@ export interface NativeProps extends ViewProps { | ||
gestureResponseDistance?: GestureResponseDistanceType; | ||
stackPresentation?: WithDefault<StackPresentation, 'push'>; | ||
stackAnimation?: WithDefault<StackAnimation, 'default'>; | ||
- transitionDuration?: WithDefault<Int32, 350>; | ||
+ transitionDuration?: WithDefault<Int32, 500>; | ||
replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>; | ||
swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>; | ||
hideKeyboardOnSwipe?: boolean; | ||
diff --git a/node_modules/react-native-screens/lib/typescript/fabric/ScreenNativeComponent.d.ts b/node_modules/react-native-screens/lib/typescript/fabric/ScreenNativeComponent.d.ts | ||
index 11ed190..f676e08 100644 | ||
--- a/node_modules/react-native-screens/lib/typescript/fabric/ScreenNativeComponent.d.ts | ||
+++ b/node_modules/react-native-screens/lib/typescript/fabric/ScreenNativeComponent.d.ts | ||
@@ -55,7 +55,7 @@ export interface NativeProps extends ViewProps { | ||
gestureResponseDistance?: GestureResponseDistanceType; | ||
stackPresentation?: WithDefault<StackPresentation, 'push'>; | ||
stackAnimation?: WithDefault<StackAnimation, 'default'>; | ||
- transitionDuration?: WithDefault<Int32, 350>; | ||
+ transitionDuration?: WithDefault<Int32, 500>; | ||
replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>; | ||
swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>; | ||
hideKeyboardOnSwipe?: boolean; | ||
diff --git a/node_modules/react-native-screens/src/fabric/ModalScreenNativeComponent.ts b/node_modules/react-native-screens/src/fabric/ModalScreenNativeComponent.ts | ||
index bb59c4c..d4c14ee 100644 | ||
--- a/node_modules/react-native-screens/src/fabric/ModalScreenNativeComponent.ts | ||
+++ b/node_modules/react-native-screens/src/fabric/ModalScreenNativeComponent.ts | ||
@@ -90,7 +90,7 @@ export interface NativeProps extends ViewProps { | ||
gestureResponseDistance?: GestureResponseDistanceType; | ||
stackPresentation?: WithDefault<StackPresentation, 'push'>; | ||
stackAnimation?: WithDefault<StackAnimation, 'default'>; | ||
- transitionDuration?: WithDefault<Int32, 350>; | ||
+ transitionDuration?: WithDefault<Int32, 500>; | ||
replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>; | ||
swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>; | ||
hideKeyboardOnSwipe?: boolean; | ||
diff --git a/node_modules/react-native-screens/src/fabric/ScreenNativeComponent.ts b/node_modules/react-native-screens/src/fabric/ScreenNativeComponent.ts | ||
index 4e39336..ab0b313 100644 | ||
--- a/node_modules/react-native-screens/src/fabric/ScreenNativeComponent.ts | ||
+++ b/node_modules/react-native-screens/src/fabric/ScreenNativeComponent.ts | ||
@@ -92,7 +92,7 @@ export interface NativeProps extends ViewProps { | ||
gestureResponseDistance?: GestureResponseDistanceType; | ||
stackPresentation?: WithDefault<StackPresentation, 'push'>; | ||
stackAnimation?: WithDefault<StackAnimation, 'default'>; | ||
- transitionDuration?: WithDefault<Int32, 350>; | ||
+ transitionDuration?: WithDefault<Int32, 500>; | ||
replaceAnimation?: WithDefault<ReplaceAnimation, 'pop'>; | ||
swipeDirection?: WithDefault<SwipeDirection, 'horizontal'>; | ||
hideKeyboardOnSwipe?: boolean; |
Oops, something went wrong.