react-native-screens 4.19.0-nightly-20251209-fb49fca61 → 4.19.0-nightly-20251210-548e8ea54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -40,6 +40,19 @@ namespace react = facebook::react;
40
40
  }
41
41
  }
42
42
 
43
+ // `RCTViewComponentView` uses this deprecated callback to invalidate layer when trait collection
44
+ // `hasDifferentColorAppearanceComparedToTraitCollection`. This updates opacity which breaks our
45
+ // content view switching workaround. To mitigate this, we update content view visibility after
46
+ // RCTViewComponentView handles the change. We need to use the same deprecated callback as it's
47
+ // called after callbacks registered via the new API.
48
+ - (void)traitCollectionDidChange:(UITraitCollection *)previousTraitCollection
49
+ {
50
+ [super traitCollectionDidChange:previousTraitCollection];
51
+ if ([self.traitCollection hasDifferentColorAppearanceComparedToTraitCollection:previousTraitCollection]) {
52
+ [_accessoryView.helper handleContentViewVisibilityForEnvironmentIfNeeded];
53
+ }
54
+ }
55
+
43
56
  #endif // RNS_BOTTOM_ACCESSORY_AVAILABLE && REACT_NATIVE_VERSION_MINOR >= 82
44
57
 
45
58
  #if RCT_NEW_ARCH_ENABLED
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-screens",
3
- "version": "4.19.0-nightly-20251209-fb49fca61",
3
+ "version": "4.19.0-nightly-20251210-548e8ea54",
4
4
  "description": "Native navigation primitives for your React Native app.",
5
5
  "scripts": {
6
6
  "submodules": "git submodule update --init --recursive && (cd react-navigation && yarn && yarn build && cd ../)",