Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyboardAvoidingView collapses to 0 height on iOS14 when "Prefer Cross-Fade Transitions" is enabled #29974

Closed
levibuzolic opened this issue Sep 18, 2020 · 35 comments

Comments

@levibuzolic
Copy link
Contributor

Description

For users with Prefer Cross-Fade Transitions enabled in their Accessibility > Motion options on iOS 14 KeyboardAvoidingView will collapse to 0px in height when the keyboard hides (when an input is blurred).

This only happens on physical devices as the Simulator doesn't have this accessibility option available.

The KeyboardAvoidingView behaves correctly when Prefer Cross-Fade Transitions is switched off.

The issue appears to be caused by incorrect endCoordinates coming back from the Keyboard.addListener('keyboardWillChangeFrame') listener in KeyboardAvoidingView as the values that come back differ significantly depending on the status of Prefer Cross-Fade Transitions.

This behaviour happens with behaviour set to height, padding and margin and doesn't appear to be an issue with the KeyboardAvoidingView directly but just the Keyboard events.

React Native version:

Tested in React Native 61.5 and 0.63.2 along with Expo v38

System information
System:
    OS: macOS 10.15.6
    CPU: (12) x64 Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz
    Memory: 837.72 MB / 32.00 GB
    Shell: 5.7.1 - /bin/zsh
  Binaries:
    Node: 14.5.0 - /var/folders/fj/y1w1yb3n4810ly8x70sds2d00000gn/T/yarn--1600411348330-0.8419068030637213/node
    Yarn: 1.22.5 - /var/folders/fj/y1w1yb3n4810ly8x70sds2d00000gn/T/yarn--1600411348330-0.8419068030637213/yarn
    npm: 6.14.5 - ~/.asdf/installs/nodejs/14.5.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.9.3 - /Users/levi/.asdf/shims/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.0, DriverKit 19.0, macOS 10.15, tvOS 14.0, watchOS 7.0
    Android SDK: Not Found
  IDEs:
    Android Studio: 4.0 AI-193.6911.18.40.6626763
    Xcode: 12.0/12A7209 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_242-release - /usr/bin/javac
    Python: 3.8.5 - /Users/levi/.asdf/shims/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1
    react-native: 0.63.2 => 0.63.2
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps To Reproduce

  1. On a device with iOS 14
  2. Enable Settings > Accessibility > Motion > Reduce Motion and Prefer Cross-Fade Transitions (will only show up after enabling Reduce Motion)
  3. Use a KeyboardAvoidingView in an app and observe the behaviour when dismissing a keyboard by blurring a TextInput

Expected Results

The KeyboardAvoidingView should reset to its normal height.

Snack, code example, screenshot, or link to a repository:

Snack: https://snack.expo.io/@levibuzolic/ios14-keyboard-avoiding-view

Minimal React Native Project: https://github.com/levibuzolic/KeyboardAvoidingView

Screenshots

Demonstrates the behaviour of the above Snack and React Native project on iOS 14 on an iPhone 11 Pro. The green border is inside the KeyboardAvoidingView to highlight the height of the content.

bug

@boythan
Copy link

boythan commented Sep 23, 2020

I have same issue

@imjackvo
Copy link

imjackvo commented Sep 23, 2020

Same issue here. Prefer Cross-Fade Transitions is enabled and it seems conflicting directly to the transition in the app.
ezgif-5-30226839b983

@marianrick
Copy link

marianrick commented Sep 28, 2020

While we are waiting for a fix, we think about disabling the KeyboardAvoidingView for users that have isReduceMotionEnabled set to true. Maybe that's a quick solution for others as well, until the official fix is released.

You can read more about the accessibility info in the docs:
https://reactnative.dev/docs/accessibilityinfo#isreducemotionenabled

@sterlingwes
Copy link
Contributor

For what it's worth, I can reproduce this in the iOS simulator with 14, so an actual iOS 14 device isn't required.

@sterlingwes
Copy link
Contributor

Here's the patch we're applying with patch-package against RN 63.2:

diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
index 7c794ea..e3881ed 100644
--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
@@ -79,7 +79,9 @@ class KeyboardAvoidingView extends React.Component<Props, State> {

   _relativeKeyboardHeight(keyboardFrame): number {
     const frame = this._frame;
-    if (!frame || !keyboardFrame) {
+    // with iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
+    // & height is reported differently (0 instead of Y position value matching height of frame)
+    if (!frame || !keyboardFrame || keyboardFrame.screenY === 0) {
       return 0;
     }

Ultimately we'll want to fix this natively, but should be a safe patch for most as I can't think of many situations where we'd want a keyboard positioned at the top of the screen.

@keremoge
Copy link

keremoge commented Oct 3, 2020

Similar problem with Reduce Motion turned on with iOS 14.0 and Prefer Cross-Fade Transitions turned on with iOS 14.0.1

@jdiaz-kindalab
Copy link

I'm having the same issue with react 0.61.5. Tried the patch but it didn't work.

@levibuzolic
Copy link
Contributor Author

@jdiaz-kindalab we're on 0.61.5 too and the patch is working for us. Are you sure it's being applied correctly?

@jdiaz-kindalab
Copy link

Hopefully it's not. Here's my patch file:

diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
index ae0dd37..3ee4458 100644
--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
@@ -82,7 +82,9 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
 
   _relativeKeyboardHeight(keyboardFrame): number {
     const frame = this._frame;
-    if (!frame || !keyboardFrame) {
+    // with iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
+    // & height is reported differently (0 instead of Y position value matching height of frame)
+    if (!frame || !keyboardFrame || keyboardFrame.screenY === 0) {
       return 0;
     }

Would you mind sharing yours? To be clear, I'm having this issue even without Prefer Cross-Fade Transitions enabled. In my case, any tap I do outside the keyboard extends my screen back to normal height while keeping the keyboard open. It seems like the lost focus event is making the screen go back to normal size.

Thanks for checking out with me

@todesignandconquer
Copy link

I was able to reproduce this exact issue with an app in production after users wrote in about it. I will attempt one of the patches above to see if it resolves the issue and report back.

@todesignandconquer
Copy link

Can confirm @sterlingwes's fix works. Thank you!

@babyrusa
Copy link

@jdiaz-kindalab In a rare case, one of my users has this issue even without Prefer Cross-Fade Transitions enabled. Were you able to find out why?

@Hannah-Alto
Copy link

@sterlingwes 's patch fix worked for us.

@aborile
Copy link

aborile commented Jul 28, 2021

@sterlingwes 's patch fix worked for us, too. Thanks a lot!!
BTW, isn't there any fix or update about this issue in react-native library...?

@Jeff-syscyber
Copy link

Aqui está o patch que estamos aplicando com patch-package contra RN 63.2:

diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
index 7c794ea..e3881ed 100644
--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
@@ -79,7 +79,9 @@ class KeyboardAvoidingView extends React.Component<Props, State> {

   _relativeKeyboardHeight(keyboardFrame): number {
     const frame = this._frame;
-    if (!frame || !keyboardFrame) {
+    // with iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
+    // & height is reported differently (0 instead of Y position value matching height of frame)
+    if (!frame || !keyboardFrame || keyboardFrame.screenY === 0) {
       return 0;
     }

No final das contas, vamos querer consertar isso nativamente, mas deve ser um patch seguro para a maioria, pois não consigo pensar em muitas situações em que gostaríamos de um teclado posicionado na parte superior da tela.

how can i apply this to my project?

@aborile
Copy link

aborile commented Sep 23, 2021

@Jeff-syscyber
change your node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js file and use patch-package, then generated patch file will look like that

@Jeff-syscyber
Copy link

@ Jeff-syscyber
mude seu node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.jsarquivo e use patch-package, então o arquivo de patch gerado ficará assim

I didn't understand very well, I started to study react native using expo now and I came across this problem...

@keremoge
Copy link

@ Jeff-syscyber
mude seu node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.jsarquivo e use patch-package, então o arquivo de patch gerado ficará assim

I didn't understand very well, I started to study react native using expo now and I came across this problem...

After npm i find node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js file under node_modules directory and update it then build android( ./gradlew ... ) or ios( pod install )

@keremoge
Copy link

another option is fork react-native and change node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js

@rikur
Copy link

rikur commented Nov 4, 2021

@Jeff-syscyber use patch-package package.

BrandonYuen added a commit to BrandonYuen/react-native that referenced this issue Mar 9, 2022
With iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
& height is reported differently (0 instead of Y position value matching height of frame).
See: facebook#29974 (comment)

This commit implements the fix mentioned in the link above.
tjespers pushed a commit to shiftbase-com/react-native that referenced this issue Mar 9, 2022
With iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
& height is reported differently (0 instead of Y position value matching height of frame).
See: facebook#29974 (comment)

This commit implements the fix mentioned in the link above.
@nachozullo
Copy link

Same issue here. Users report this bug in production app.

@rolfb
Copy link

rolfb commented May 24, 2022

Found this issue too. You seem to have done some work on this @gabrieldonadel, but couldn't quite figure out if anything got merged?

@keremoge
Copy link

Similar problem with Reduce Motion turned on with iOS 14.0 and Prefer Cross-Fade Transitions turned on with iOS 14.0.1

Similar problem with Reduce Motion and Prefer Cross-Fade Transitions turned on with iOS 15.2.1 on RN 0.68.1.

I applied sterlingwes's fix, and it works fine now. 👍

@alexmgriffiths
Copy link

This was driving me insane. I could not find ANY info on it. Stumbled upon this out of sheer luck. Thank you @sterlingwes for the fix

@nickmcmillan
Copy link

One of our users submitted a support ticket including a screen recording which tipped me off to it being related to cross-fade transitions. Without that users screen recording I wouldn't have stood a chance finding this Github issue.

Confirming that the patch #29974 (comment) worked for me in RN 0.66.4.

@CMLCNL
Copy link

CMLCNL commented Jul 13, 2022

It's not working for me in any way. react-native 62.2.2

BrandonYuen added a commit to BrandonYuen/react-native that referenced this issue Jul 27, 2022
With iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
& height is reported differently (0 instead of Y position value matching height of frame).
See: facebook#29974 (comment)

This commit implements the fix mentioned in the link above.
tjespers pushed a commit to shiftbase-com/react-native that referenced this issue Jul 27, 2022
With iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
& height is reported differently (0 instead of Y position value matching height of frame).
See: facebook#29974 (comment)

This commit implements the fix mentioned in the link above.
@fabOnReact
Copy link
Contributor

I would like to work on this issue. Thanks

facebook-github-bot pushed a commit that referenced this issue Aug 26, 2022
Summary:
While working on a fix for #29974 (I have a draft for that already (gabrieldonadel#16), just waiting for #34406 to get merged) I noticed that the `KeyboardAvoidingView` tests on RNTester on iOS were not working with Fabric enabled because the `ModalHostView` component was still not implemented. Upon some more investigation, I found this code suggestion from Milker90 (#33652 (comment)) that enables the Modal component on iOS when Fabric is enabled.

Closes #33652

## Changelog

[iOS] [Added] - Add support for Modal on iOS when Fabric is enabled

Pull Request resolved: #34487

Test Plan:
1. With Fabric enabled open the RNTester app and navigate to the Modal page
2. Test the `Modal` component through the sections changing props

https://user-images.githubusercontent.com/11707729/186289099-5223907d-b300-46bf-bfde-73259c29d544.mov

Reviewed By: christophpurrer

Differential Revision: D38981895

Pulled By: cipolleschi

fbshipit-source-id: cd493a8d2035900da2576323bc112e2565df4834
raykle pushed a commit to raykle/react-native that referenced this issue Aug 27, 2022
…4487)

Summary:
While working on a fix for facebook#29974 (I have a draft for that already (gabrieldonadel#16), just waiting for facebook#34406 to get merged) I noticed that the `KeyboardAvoidingView` tests on RNTester on iOS were not working with Fabric enabled because the `ModalHostView` component was still not implemented. Upon some more investigation, I found this code suggestion from Milker90 (facebook#33652 (comment)) that enables the Modal component on iOS when Fabric is enabled.

Closes facebook#33652

## Changelog

[iOS] [Added] - Add support for Modal on iOS when Fabric is enabled

Pull Request resolved: facebook#34487

Test Plan:
1. With Fabric enabled open the RNTester app and navigate to the Modal page
2. Test the `Modal` component through the sections changing props

https://user-images.githubusercontent.com/11707729/186289099-5223907d-b300-46bf-bfde-73259c29d544.mov

Reviewed By: christophpurrer

Differential Revision: D38981895

Pulled By: cipolleschi

fbshipit-source-id: cd493a8d2035900da2576323bc112e2565df4834
dmytrorykun pushed a commit that referenced this issue Sep 14, 2022
… is enabled (#34503)

Summary:
Fix `KeyboardAvoidingView`  height on iOS when "Prefer Cross-Fade Transitions" is enabled by adding an additional check to `_relativeKeyboardHeight` verifying if `prefersCrossFadeTransitions()` is true and `keyboardFrame.screenY` is `0` and treating this special case. The issue was caused  by the native RCTKeyboardObserver where the `endFrame` reported by `UIKeyboardWillChangeFrameNotification` returns `height = 0` when Prefer Cross-Fade Transitions" is enabled
and unfortunelly there isn't much we can do on the native side to fix it.

Closes #31484
Closes #29974

[iOS] [Fixed] - Fix KeyboardAvoidingView height when "Prefer Cross-Fade Transitions" is enabled

Pull Request resolved: #34503

Test Plan:
**On iOS 14+**

1.  Access Settings > "General" > "Accessibility" > "Reduce Motion", enable "Reduce Motion" then enable "Prefer Cross-Fade Transitions".
2. Open the RNTester app and navigate to the KeyboardAvoidingView page
3. Focus and blur inputs and observe the keyboard behaving correctly

https://user-images.githubusercontent.com/11707729/186822671-801872be-7db1-4c5c-904b-1987441c1326.mov

Reviewed By: jacdebug

Differential Revision: D39055213

Pulled By: cipolleschi

fbshipit-source-id: fac17cbe02867e0fe522397f6cb59a8b51c1840f
@ildfreelancer
Copy link

ildfreelancer commented Sep 27, 2022

@fabriziobertoglio1987 I've just checked the latest source 0.70.x, it doesn't have prefersCrossFadeTransitions in https://github.com/facebook/react-native/blob/0.70-stable/Libraries/Components/AccessibilityInfo/AccessibilityInfo.js
I believe someone tried to fix this issue, but having merge conflicts.

related issue here: #34784

kelset pushed a commit that referenced this issue Oct 3, 2022
… is enabled (#34503)

Summary:
Fix `KeyboardAvoidingView`  height on iOS when "Prefer Cross-Fade Transitions" is enabled by adding an additional check to `_relativeKeyboardHeight` verifying if `prefersCrossFadeTransitions()` is true and `keyboardFrame.screenY` is `0` and treating this special case. The issue was caused  by the native RCTKeyboardObserver where the `endFrame` reported by `UIKeyboardWillChangeFrameNotification` returns `height = 0` when Prefer Cross-Fade Transitions" is enabled
and unfortunelly there isn't much we can do on the native side to fix it.

Closes #31484
Closes #29974

## Changelog

[iOS] [Fixed] - Fix KeyboardAvoidingView height when "Prefer Cross-Fade Transitions" is enabled

Pull Request resolved: #34503

Test Plan:
**On iOS 14+**

1.  Access Settings > "General" > "Accessibility" > "Reduce Motion", enable "Reduce Motion" then enable "Prefer Cross-Fade Transitions".
2. Open the RNTester app and navigate to the KeyboardAvoidingView page
3. Focus and blur inputs and observe the keyboard behaving correctly

https://user-images.githubusercontent.com/11707729/186822671-801872be-7db1-4c5c-904b-1987441c1326.mov

Reviewed By: jacdebug

Differential Revision: D39055213

Pulled By: cipolleschi

fbshipit-source-id: fac17cbe02867e0fe522397f6cb59a8b51c1840f
alphatrl pushed a commit to taskade/react-native that referenced this issue Oct 17, 2022
… is enabled (facebook#34503)

Summary:
Fix `KeyboardAvoidingView`  height on iOS when "Prefer Cross-Fade Transitions" is enabled by adding an additional check to `_relativeKeyboardHeight` verifying if `prefersCrossFadeTransitions()` is true and `keyboardFrame.screenY` is `0` and treating this special case. The issue was caused  by the native RCTKeyboardObserver where the `endFrame` reported by `UIKeyboardWillChangeFrameNotification` returns `height = 0` when Prefer Cross-Fade Transitions" is enabled
and unfortunelly there isn't much we can do on the native side to fix it.

Closes facebook#31484
Closes facebook#29974

## Changelog

[iOS] [Fixed] - Fix KeyboardAvoidingView height when "Prefer Cross-Fade Transitions" is enabled

Pull Request resolved: facebook#34503

Test Plan:
**On iOS 14+**

1.  Access Settings > "General" > "Accessibility" > "Reduce Motion", enable "Reduce Motion" then enable "Prefer Cross-Fade Transitions".
2. Open the RNTester app and navigate to the KeyboardAvoidingView page
3. Focus and blur inputs and observe the keyboard behaving correctly

https://user-images.githubusercontent.com/11707729/186822671-801872be-7db1-4c5c-904b-1987441c1326.mov

Reviewed By: jacdebug

Differential Revision: D39055213

Pulled By: cipolleschi

fbshipit-source-id: fac17cbe02867e0fe522397f6cb59a8b51c1840f

# Conflicts:
#	Libraries/Components/Keyboard/KeyboardAvoidingView.js
alphatrl pushed a commit to taskade/react-native that referenced this issue Oct 17, 2022
… is enabled (facebook#34503)

Summary:
Fix `KeyboardAvoidingView`  height on iOS when "Prefer Cross-Fade Transitions" is enabled by adding an additional check to `_relativeKeyboardHeight` verifying if `prefersCrossFadeTransitions()` is true and `keyboardFrame.screenY` is `0` and treating this special case. The issue was caused  by the native RCTKeyboardObserver where the `endFrame` reported by `UIKeyboardWillChangeFrameNotification` returns `height = 0` when Prefer Cross-Fade Transitions" is enabled
and unfortunelly there isn't much we can do on the native side to fix it.

Closes facebook#31484
Closes facebook#29974

## Changelog

[iOS] [Fixed] - Fix KeyboardAvoidingView height when "Prefer Cross-Fade Transitions" is enabled

Pull Request resolved: facebook#34503

Test Plan:
**On iOS 14+**

1.  Access Settings > "General" > "Accessibility" > "Reduce Motion", enable "Reduce Motion" then enable "Prefer Cross-Fade Transitions".
2. Open the RNTester app and navigate to the KeyboardAvoidingView page
3. Focus and blur inputs and observe the keyboard behaving correctly

https://user-images.githubusercontent.com/11707729/186822671-801872be-7db1-4c5c-904b-1987441c1326.mov

Reviewed By: jacdebug

Differential Revision: D39055213

Pulled By: cipolleschi

fbshipit-source-id: fac17cbe02867e0fe522397f6cb59a8b51c1840f

# Conflicts:
#	Libraries/Components/Keyboard/KeyboardAvoidingView.js
@lfoliveir4
Copy link

lfoliveir4 commented Apr 18, 2023

Here's the patch we're applying with patch-package against RN 63.2:

diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
index 7c794ea..e3881ed 100644
--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
@@ -79,7 +79,9 @@ class KeyboardAvoidingView extends React.Component<Props, State> {

   _relativeKeyboardHeight(keyboardFrame): number {
     const frame = this._frame;
-    if (!frame || !keyboardFrame) {
+    // with iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
+    // & height is reported differently (0 instead of Y position value matching height of frame)
+    if (!frame || !keyboardFrame || keyboardFrame.screenY === 0) {
       return 0;
     }

Ultimately we'll want to fix this natively, but should be a safe patch for most as I can't think of many situations where we'd want a keyboard positioned at the top of the screen.

That's fix works for my app!!! Save me!!

React Native version: 0.69.0

@mannoeu
Copy link

mannoeu commented Oct 10, 2023

Hopefully it's not. Here's my patch file:

diff --git a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
index ae0dd37..3ee4458 100644
--- a/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
+++ b/node_modules/react-native/Libraries/Components/Keyboard/KeyboardAvoidingView.js
@@ -82,7 +82,9 @@ class KeyboardAvoidingView extends React.Component<Props, State> {
 
   _relativeKeyboardHeight(keyboardFrame): number {
     const frame = this._frame;
-    if (!frame || !keyboardFrame) {
+    // with iOS 14 & Reduce Motion > Prefer Cross-Fade Transitions enabled, the keyboard position
+    // & height is reported differently (0 instead of Y position value matching height of frame)
+    if (!frame || !keyboardFrame || keyboardFrame.screenY === 0) {
       return 0;
     }

Would you mind sharing yours? To be clear, I'm having this issue even without Prefer Cross-Fade Transitions enabled. In my case, any tap I do outside the keyboard extends my screen back to normal height while keeping the keyboard open. It seems like the lost focus event is making the screen go back to normal size.

Thanks for checking out with me

This should be documented in the KeyboardAvoidingView component within the react-native documentation...

Works for me! For those who don't know how to apply the patch check this: https://anu-thomas.medium.com/patch-package-in-react-native-c7786a15e279

React Native version: 0.63.5

Ashoat added a commit to CommE2E/comm that referenced this issue Dec 1, 2023
…s enabled on iOS

Summary: Fixes [ENG-5919](https://linear.app/comm/issue/ENG-5919/enabling-cross-fade-transitions-on-ios-makes-app-unusable), which is [this React Native issue](facebook/react-native#29974). I took the patch there as inspiration, but there are minimal differences because we have our own `KeyboardAvoidingView` (which lets us skip using `patch-package`).

Test Plan: Confirm that the repro no longer works: open chat, select `ChatInputBar`, swipe back

Reviewers: atul, ginsu, tomek

Reviewed By: ginsu

Differential Revision: https://phab.comm.dev/D10120
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment