react-native-macos/React/Views
Prakash Gurung b8f1bb50f7 Fix ScrollView automaticallyAdjustKeyboardInsets not resetting when Prefer Cross-Fade Transitions is enabled (#35933)
Summary:
Similar to the issue here https://github.com/facebook/react-native/pull/34503 but this is also happening if we just use `ScrollView` and `TextInput` with `automaticallyAdjustKeyboardInsets` enabled.

When we enable `Prefer Cross-Fade Transitions` in `iOS` we get a keyboard height of `0` which causes the inset/offset miscalculation and the content jumps up when the keyboard gets hidden.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry.

Pick one each for the category and type tags:

[IOS] [FIXED] - Fix ScrollView `automaticallyAdjustKeyboardInsets` not resetting when Prefer Cross-Fade Transitions is enabled and keyboard hides

For more details, see:
https://reactnative.dev/contributing/changelogs-in-pull-requests
-->

[IOS] [FIXED] - Fix ScrollView `automaticallyAdjustKeyboardInsets` not resetting when Prefer Cross-Fade Transitions is enabled and keyboard hides

Pull Request resolved: https://github.com/facebook/react-native/pull/35933

Test Plan:
Tested with brand new react native project with/without the fix

before fix `automaticallyAdjustKeyboardInsets` with enabled/disabled opening/closing keyboard

https://user-images.githubusercontent.com/6507800/214039873-33bfb016-f99f-4644-9174-20bf32cf07d6.mov

after fix `automaticallyAdjustKeyboardInsets` with enabled/disabled opening/closing keyboard

https://user-images.githubusercontent.com/6507800/214039887-4054a749-ab15-4399-b6a9-73dc9283aa6b.mov

Reviewed By: christophpurrer

Differential Revision: D42686390

Pulled By: jacdebug

fbshipit-source-id: 98488e0c9639c19a4acae1a1de1a5fde411e2462
2023-01-24 03:25:25 -08:00
..
RefreshControl RCTRefreshControl: Updates progressOffset behaviour to prevent it from being applied by default (#35281) 2022-11-17 08:06:41 -08:00
SafeAreaView Remove iOS 11 deprecation warnings around SafeArea (#32851) 2022-05-16 09:27:43 -07:00
ScrollView Fix ScrollView automaticallyAdjustKeyboardInsets not resetting when Prefer Cross-Fade Transitions is enabled (#35933) 2023-01-24 03:25:25 -08:00
RCTActivityIndicatorView.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActivityIndicatorView.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActivityIndicatorViewManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTActivityIndicatorViewManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAnimationType.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTAutoInsetsProtocol.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTBorderCurve.h Added border curve style prop ("Squircle" effect - iOS only) (#33783) 2022-07-21 04:11:30 -07:00
RCTBorderDrawing.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTBorderDrawing.m Adopt UIGraphicsImageRenderer API 2022-04-22 17:02:51 -07:00
RCTBorderStyle.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTComponent.h Add mechanism for iOS native components to expose capturing-only events 2022-04-07 14:07:58 -07:00
RCTComponentData.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTComponentData.m Remove RCTViewConfigEventValidAttributesDisabled 2022-12-02 09:08:16 -08:00
RCTConvert+CoreLocation.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTConvert+CoreLocation.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTConvert+Transform.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTConvert+Transform.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTFont.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTFont.mm feat(font-feature): adding stylistics from ss01 to ss20 as new fontVariant values (#34003) 2022-08-17 03:07:09 -07:00
RCTLayout.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTLayout.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostView.h onDismiss to be an RCTDirectEventBlock (#33222) 2022-03-03 18:06:08 -08:00
RCTModalHostView.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewController.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewController.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalHostViewManager.m fix: fix the potential race condition when dismissing and presentating modal (#35705) 2023-01-03 11:41:40 -08:00
RCTModalManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTModalManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTPointerEvents.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTRootShadowView.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTRootShadowView.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControl.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControl.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControlManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSegmentedControlManager.m Minor: Rename RCTNotAllowedInAppWideFabric to RCTNotAllowedInFabricWithoutLegacy 2022-07-08 15:07:55 -07:00
RCTShadowView+Internal.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView+Internal.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView+Layout.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView+Layout.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTShadowView.h feat: flex gap bindings (#34974) 2022-10-20 14:53:32 -07:00
RCTShadowView.m feat: flex gap bindings (#34974) 2022-10-20 14:53:32 -07:00
RCTSwitch.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSwitch.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSwitchManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTSwitchManager.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTTextDecorationLineType.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTView.h feat: Add logical border radius implementation (#35572) 2023-01-06 06:00:03 -08:00
RCTView.m feat: Add logical border radius implementation (#35572) 2023-01-06 06:00:03 -08:00
RCTViewManager.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTViewManager.m remove duplicate role grid from RCTViewManager (#35932) 2023-01-23 10:21:52 -08:00
RCTViewUtils.h fix more imports 2022-07-19 12:53:11 -07:00
RCTViewUtils.m Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWrapperViewController.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
RCTWrapperViewController.m Remove iOS 11 deprecation warnings around SafeArea (#32851) 2022-05-16 09:27:43 -07:00
UIView+Private.h Update copyright headers from Facebook to Meta 2021-12-30 15:11:21 -08:00
UIView+React.h Integrated iOS-only `accessibilityLanguage` prop (#33090) 2022-03-07 09:43:30 -08:00
UIView+React.m Integrated iOS-only `accessibilityLanguage` prop (#33090) 2022-03-07 09:43:30 -08:00