react-native-tvos 0.88.0-0rc2 → 0.88.101-tv.0

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.
Files changed (91) hide show
  1. package/Libraries/Animated/components/AnimatedScrollView.js +2 -2
  2. package/Libraries/AppDelegate/RCTDefaultReactNativeFactoryDelegate.mm +26 -1
  3. package/Libraries/AppDelegate/RCTUIConfiguratorProtocol.h +1 -1
  4. package/Libraries/Components/ActivityIndicator/ActivityIndicator.js +8 -5
  5. package/Libraries/Components/Button.js +4 -2
  6. package/Libraries/Components/Keyboard/KeyboardAvoidingView.js +7 -4
  7. package/Libraries/Components/Pressable/Pressable.js +4 -2
  8. package/Libraries/Components/TextInput/InputAccessoryView.js +8 -6
  9. package/Libraries/Components/TextInput/TextInput.js +5 -5
  10. package/Libraries/Components/Touchable/TouchableWithoutFeedback.js +85 -84
  11. package/Libraries/Components/View/ViewAccessibility.js +8 -4
  12. package/Libraries/Core/ReactNativeVersion.js +2 -2
  13. package/Libraries/Image/ImageProps.js +38 -18
  14. package/Libraries/LogBox/LogBoxNotificationContainer.js +7 -1
  15. package/Libraries/LogBox/UI/LogBoxNotificationDismissButton.js +3 -3
  16. package/Libraries/Modal/Modal.js +4 -2
  17. package/Libraries/StyleSheet/StyleSheet.js +3 -9
  18. package/Libraries/StyleSheet/StyleSheet.js.flow +3 -9
  19. package/Libraries/StyleSheet/StyleSheetTypes.js +12 -9
  20. package/Libraries/StyleSheet/splitLayoutProps.js +6 -6
  21. package/Libraries/Text/Text.js +6 -6
  22. package/React/Base/RCTConstants.m +1 -1
  23. package/React/Base/RCTStatusBarAppearance.h +30 -0
  24. package/React/Base/RCTStatusBarAppearance.mm +66 -0
  25. package/React/Base/RCTVersion.m +2 -2
  26. package/React/CoreModules/RCTStatusBarManager.mm +34 -9
  27. package/React/Fabric/Mounting/ComponentViews/Image/RCTImageComponentView.mm +13 -5
  28. package/React/Fabric/Mounting/ComponentViews/Modal/RCTFabricModalHostViewController.mm +30 -2
  29. package/React/Fabric/Mounting/ComponentViews/Modal/RCTModalHostViewComponentView.mm +9 -0
  30. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +8 -1
  31. package/ReactAndroid/gradle.properties +1 -1
  32. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +2 -2
  33. package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +16 -2
  34. package/ReactAndroid/src/main/java/com/facebook/react/views/text/ReactTypefaceUtils.kt +4 -0
  35. package/ReactAndroid/src/main/java/com/facebook/react/views/text/TextDecorationStyle.kt +32 -4
  36. package/ReactAndroid/src/main/java/com/facebook/react/views/textinput/ReactEditText.kt +4 -0
  37. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewManager.kt +17 -12
  38. package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
  39. package/ReactApple/RCTSwiftUI/RCTSwiftUIContainerView.swift +4 -0
  40. package/ReactCommon/cxxreact/ReactNativeVersion.h +3 -3
  41. package/ReactCommon/jsi/jsi/decorator.h +64 -0
  42. package/ReactCommon/jsi/jsi/jsi.cpp +2 -4
  43. package/ReactCommon/jsi/jsi/test/testlib.cpp +285 -8
  44. package/ReactCommon/jsi/jsi/test/testlib.h +1 -0
  45. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm +2 -1
  46. package/ReactCommon/yoga/yoga/algorithm/CalculateLayout.cpp +6 -2
  47. package/ReactCommon/yoga/yoga/algorithm/PixelGrid.cpp +49 -19
  48. package/package.json +10 -8
  49. package/react-native.config.js +1 -21
  50. package/scripts/cocoapods/autolinking.rb +3 -2
  51. package/scripts/cocoapods/codegen.rb +1 -1
  52. package/scripts/cocoapods/codegen_utils.rb +1 -1
  53. package/scripts/cocoapods/fabric.rb +1 -1
  54. package/scripts/cocoapods/jsengine.rb +1 -1
  55. package/scripts/cocoapods/local_podspec_patch.rb +1 -1
  56. package/scripts/cocoapods/runtime.rb +1 -1
  57. package/scripts/cocoapods/utils.rb +60 -1
  58. package/scripts/codegen/generate-artifacts-executor/utils.js +1 -1
  59. package/scripts/codegen/templates/Package.swift.spm-template +13 -2
  60. package/scripts/react-native-xcode.sh +3 -0
  61. package/scripts/react_native_pods.rb +4 -3
  62. package/scripts/setup-apple-spm.js +10 -5
  63. package/scripts/spm/autolinking-plugins.js +2 -1
  64. package/scripts/spm/flavored-frameworks.js +1 -0
  65. package/scripts/spm/generate-spm-autolinking.js +34 -96
  66. package/scripts/spm/generate-spm-xcodeproj.js +798 -285
  67. package/scripts/spm/ios-deployment-target.js +16 -63
  68. package/scripts/spm/spm-pbxproj.js +8 -3
  69. package/scripts/spm/spm-types.js +2 -15
  70. package/scripts/spm/sync-spm-autolinking.js +57 -23
  71. package/scripts/spm/xcconfig-files.js +149 -0
  72. package/sdks/.hermesv1version +1 -1
  73. package/sdks/hermes-engine/hermes-engine.podspec +1 -1
  74. package/sdks/hermes-engine/version.properties +1 -1
  75. package/third-party-podspecs/ReactNativeDependencies.podspec +1 -1
  76. package/tvos-metro-config/index.js +139 -0
  77. package/tvos-metro-config/transform-worker.js +63 -0
  78. package/tvosCommands.js +1 -10
  79. package/types_DEPRECATED/index.d.ts +1 -0
  80. package/types_DEPRECATED/src/private/assets/AssetRegistry.d.ts +44 -0
  81. package/types_generated/Libraries/Components/ActivityIndicator/ActivityIndicator.d.ts +7 -6
  82. package/types_generated/Libraries/Components/Button.d.ts +30 -29
  83. package/types_generated/Libraries/Components/Keyboard/KeyboardAvoidingView.d.ts +8 -7
  84. package/types_generated/Libraries/Components/Pressable/Pressable.d.ts +6 -5
  85. package/types_generated/Libraries/Components/TextInput/InputAccessoryView.d.ts +7 -6
  86. package/types_generated/Libraries/Components/Touchable/TouchableWithoutFeedback.d.ts +26 -25
  87. package/types_generated/Libraries/Components/View/ViewAccessibility.d.ts +23 -22
  88. package/types_generated/Libraries/Image/ImageProps.d.ts +39 -36
  89. package/types_generated/Libraries/Modal/Modal.d.ts +4 -3
  90. package/types_generated/Libraries/StyleSheet/StyleSheet.d.ts +5 -8
  91. package/types_generated/Libraries/StyleSheet/StyleSheetTypes.d.ts +10 -10
@@ -8,7 +8,7 @@
8
8
  * @format
9
9
  */
10
10
 
11
- import type {____ViewStyle_Internal} from '../../StyleSheet/StyleSheetTypes';
11
+ import type {ViewStyle} from '../../StyleSheet/StyleSheetTypes';
12
12
  import type {
13
13
  AnimatedComponentType,
14
14
  AnimatedProps,
@@ -99,7 +99,7 @@ const AnimatedScrollViewWithInvertedRefreshControl =
99
99
 
100
100
  // Handle animated props on `refreshControl`.
101
101
  const [refreshControlAnimatedProps, refreshControlRef] = useAnimatedProps<
102
- {style: ?____ViewStyle_Internal},
102
+ {style: ?ViewStyle},
103
103
  $FlowFixMe,
104
104
  >(intermediatePropsForRefreshControl);
105
105
  // NOTE: Assumes that refreshControl.ref` and `refreshControl.style` can be
@@ -14,9 +14,34 @@
14
14
  #endif
15
15
 
16
16
  #import <RCTAnimatedModuleProvider/RCTAnimatedModuleProvider.h>
17
+ #import <React/RCTStatusBarAppearance.h>
17
18
  #import <react/featureflags/ReactNativeFeatureFlags.h>
18
19
  #import <react/nativemodule/defaults/DefaultTurboModules.h>
19
20
 
21
+ @interface RCTRootViewController : UIViewController
22
+ @end
23
+
24
+ @implementation RCTRootViewController
25
+
26
+ #if !TARGET_OS_TV
27
+ - (UIStatusBarStyle)preferredStatusBarStyle
28
+ {
29
+ return RCTStatusBarAppearance.style;
30
+ }
31
+
32
+ - (BOOL)prefersStatusBarHidden
33
+ {
34
+ return RCTStatusBarAppearance.hidden;
35
+ }
36
+
37
+ - (UIStatusBarAnimation)preferredStatusBarUpdateAnimation
38
+ {
39
+ return RCTStatusBarAppearance.updateAnimation;
40
+ }
41
+ #endif
42
+
43
+ @end
44
+
20
45
  @implementation RCTDefaultReactNativeFactoryDelegate {
21
46
  // C++ Native Animated provider, created once on first use (getTurboModule: may be called
22
47
  // concurrently for different module names).
@@ -35,7 +60,7 @@
35
60
 
36
61
  - (UIViewController *)createRootViewController
37
62
  {
38
- return [UIViewController new];
63
+ return [RCTRootViewController new];
39
64
  }
40
65
 
41
66
  - (void)setRootView:(UIView *)rootView toRootViewController:(UIViewController *)rootViewController
@@ -41,7 +41,7 @@ NS_ASSUME_NONNULL_BEGIN
41
41
 
42
42
  /**
43
43
  * It creates the RootViewController.
44
- * By default, it creates a new instance of a `UIViewController`.
44
+ * By default, it creates a view controller that returns the `RCTStatusBarAppearance` values.
45
45
  * You can override it to provide your own initial ViewController.
46
46
  *
47
47
  * @return: an instance of `UIViewController`.
@@ -38,11 +38,7 @@ type ActivityIndicatorIOSProps = Readonly<{
38
38
  hidesWhenStopped?: ?boolean,
39
39
  }>;
40
40
 
41
- /** @build-types emit-as-interface Uniwind compatibility */
42
- export type ActivityIndicatorProps = Readonly<{
43
- ...ViewProps,
44
- ...ActivityIndicatorIOSProps,
45
-
41
+ type ActivityIndicatorPropsCore = Readonly<{
46
42
  /**
47
43
  * Whether to show the indicator (`true`) or hide it (`false`).
48
44
  */
@@ -67,6 +63,13 @@ export type ActivityIndicatorProps = Readonly<{
67
63
  size?: ?IndicatorSize,
68
64
  }>;
69
65
 
66
+ /** @build-types emit-as-interface Uniwind compatibility */
67
+ export type ActivityIndicatorProps = Readonly<{
68
+ ...ViewProps,
69
+ ...ActivityIndicatorIOSProps,
70
+ ...ActivityIndicatorPropsCore,
71
+ }>;
72
+
70
73
  /**
71
74
  * Displays a circular loading indicator.
72
75
  *
@@ -27,8 +27,7 @@ import View from './View/View';
27
27
  import invariant from 'invariant';
28
28
  import * as React from 'react';
29
29
 
30
- /** @build-types emit-as-interface Uniwind compatibility */
31
- export type ButtonProps = Readonly<{
30
+ type ButtonPropsCore = Readonly<{
32
31
  /**
33
32
  * Text to display inside the button. On Android the given title will be
34
33
  * converted to the uppercased form.
@@ -165,6 +164,9 @@ export type ButtonProps = Readonly<{
165
164
  accessibilityLanguage?: ?Stringish,
166
165
  }>;
167
166
 
167
+ /** @build-types emit-as-interface Uniwind compatibility */
168
+ export type ButtonProps = ButtonPropsCore;
169
+
168
170
  const NativeTouchable:
169
171
  typeof TouchableNativeFeedback | typeof TouchableOpacity =
170
172
  Platform.OS === 'android' ? TouchableNativeFeedback : TouchableOpacity;
@@ -26,10 +26,7 @@ import Keyboard from './Keyboard';
26
26
  import * as React from 'react';
27
27
  import {createRef} from 'react';
28
28
 
29
- /** @build-types emit-as-interface Uniwind compatibility */
30
- export type KeyboardAvoidingViewProps = Readonly<{
31
- ...ViewProps,
32
-
29
+ type KeyboardAvoidingViewPropsCore = Readonly<{
33
30
  /**
34
31
  * Specify how to react to the presence of the keyboard.
35
32
  */
@@ -56,6 +53,12 @@ export type KeyboardAvoidingViewProps = Readonly<{
56
53
  keyboardVerticalOffset?: number,
57
54
  }>;
58
55
 
56
+ /** @build-types emit-as-interface Uniwind compatibility */
57
+ export type KeyboardAvoidingViewProps = Readonly<{
58
+ ...ViewProps,
59
+ ...KeyboardAvoidingViewPropsCore,
60
+ }>;
61
+
59
62
  type KeyboardAvoidingViewState = {
60
63
  bottom: number,
61
64
  };
@@ -36,8 +36,7 @@ export type PressableInstance = HostInstance;
36
36
 
37
37
  export type {PressableAndroidRippleConfig};
38
38
 
39
- /** @build-types emit-as-interface react-native-web compatibility */
40
- export type PressableStateCallbackType = Readonly<{
39
+ type PressableStateCallbackTypeCore = Readonly<{
41
40
  pressed: boolean,
42
41
  focused: boolean,
43
42
  }>;
@@ -57,6 +56,9 @@ type TVProps = $ReadOnly<{
57
56
  onBlurCapture?: ?(event: BlurEvent) => void,
58
57
  }>;
59
58
 
59
+ /** @build-types emit-as-interface react-native-web compatibility */
60
+ export type PressableStateCallbackType = PressableStateCallbackTypeCore;
61
+
60
62
  type PressableBaseProps = Readonly<{
61
63
  /**
62
64
  * Whether a press gesture can be interrupted by a parent gesture such as a
@@ -18,12 +18,7 @@ import useWindowDimensions from '../../Utilities/useWindowDimensions';
18
18
  import RCTInputAccessoryViewNativeComponent from './RCTInputAccessoryViewNativeComponent';
19
19
  import * as React from 'react';
20
20
 
21
- /**
22
- * InputAccessoryView is deprecated and will be removed in a future release.
23
- * @deprecated
24
- * @build-types emit-as-interface Expo compatibility
25
- */
26
- export type InputAccessoryViewProps = Readonly<{
21
+ type InputAccessoryViewPropsCore = Readonly<{
27
22
  readonly children: React.Node,
28
23
  /**
29
24
  * An ID used to associate this `InputAccessoryView` to specified `TextInput`(s).
@@ -33,6 +28,13 @@ export type InputAccessoryViewProps = Readonly<{
33
28
  backgroundColor?: ?ColorValue,
34
29
  }>;
35
30
 
31
+ /**
32
+ * InputAccessoryView is deprecated and will be removed in a future release.
33
+ * @deprecated
34
+ * @build-types emit-as-interface Expo compatibility
35
+ */
36
+ export type InputAccessoryViewProps = InputAccessoryViewPropsCore;
37
+
36
38
  /**
37
39
  * A component which enables customization of the keyboard input accessory view on iOS. The input accessory view is displayed above the keyboard whenever a `TextInput` has focus. This component can be used to create custom toolbars.
38
40
  *
@@ -9,7 +9,7 @@
9
9
  */
10
10
 
11
11
  import type {HostInstance} from '../../../src/private/types/HostInstance';
12
- import type {____TextStyle_Internal as TextStyleInternal} from '../../StyleSheet/StyleSheetTypes';
12
+ import type {TextStyle} from '../../StyleSheet/StyleSheetTypes';
13
13
  import type {
14
14
  BlurEvent,
15
15
  FocusEvent,
@@ -544,16 +544,16 @@ function InternalTextInput(props: TextInputProps): React.Node {
544
544
  let _style = props.style;
545
545
  const flattenedStyle = flattenStyle<TextStyleProp>(props.style);
546
546
  if (flattenedStyle != null) {
547
- let overrides: ?{...TextStyleInternal} = null;
547
+ let overrides: ?{...TextStyle} = null;
548
548
  if (typeof flattenedStyle?.fontWeight === 'number') {
549
- overrides = overrides || ({} as {...TextStyleInternal});
549
+ overrides = overrides || ({} as {...TextStyle});
550
550
  overrides.fontWeight =
551
551
  // $FlowFixMe[incompatible-type]
552
- flattenedStyle.fontWeight.toString() as TextStyleInternal['fontWeight'];
552
+ flattenedStyle.fontWeight.toString() as TextStyle['fontWeight'];
553
553
  }
554
554
 
555
555
  if (flattenedStyle.verticalAlign != null) {
556
- overrides = overrides || ({} as {...TextStyleInternal});
556
+ overrides = overrides || ({} as {...TextStyle});
557
557
  overrides.textAlignVertical =
558
558
  verticalAlignToTextAlignVerticalMap[flattenedStyle.verticalAlign];
559
559
  overrides.verticalAlign = undefined;
@@ -39,92 +39,93 @@ export type TouchableWithoutFeedbackPropsAndroid = {
39
39
  touchSoundDisabled?: ?boolean,
40
40
  };
41
41
 
42
+ type TouchableWithoutFeedbackPropsCore = {
43
+ children?: ?React.Node,
44
+ /**
45
+ * Delay in ms, from onPressIn, before onLongPress is called.
46
+ */
47
+ delayLongPress?: ?number,
48
+ /**
49
+ * Delay in ms, from the start of the touch, before onPressIn is called.
50
+ */
51
+ delayPressIn?: ?number,
52
+ /**
53
+ * Delay in ms, from the release of the touch, before onPressOut is called.
54
+ */
55
+ delayPressOut?: ?number,
56
+ /**
57
+ * If true, disable all interactions for this component.
58
+ */
59
+ disabled?: ?boolean,
60
+ /**
61
+ * Whether this View should be focusable with a non-touch input device,
62
+ * eg. receive focus with a hardware keyboard / TV remote.
63
+ */
64
+ focusable?: ?boolean,
65
+ /**
66
+ * This defines how far your touch can start away from the button.
67
+ * This is added to pressRetentionOffset when moving off of the button.
68
+ * NOTE The touch area never extends past the parent view bounds and
69
+ * the Z-index of sibling views always takes precedence if a touch hits
70
+ * two overlapping views.
71
+ */
72
+ hitSlop?: ?EdgeInsetsOrSizeProp,
73
+ /**
74
+ * Used to reference react managed views from native code.
75
+ */
76
+ id?: string,
77
+ importantForAccessibility?: ?('auto' | 'yes' | 'no' | 'no-hide-descendants'),
78
+ nativeID?: ?string,
79
+ onAccessibilityAction?: ?(event: AccessibilityActionEvent) => unknown,
80
+ /**
81
+ * When `accessible` is true (which is the default) this may be called when
82
+ * the OS-specific concept of "blur" occurs, meaning the element lost focus.
83
+ * Some platforms may not have the concept of blur.
84
+ */
85
+ onBlur?: ?(event: BlurEvent) => unknown,
86
+ /**
87
+ * When `accessible` is true (which is the default) this may be called when
88
+ * the OS-specific concept of "focus" occurs. Some platforms may not have
89
+ * the concept of focus.
90
+ */
91
+ onFocus?: ?(event: FocusEvent) => unknown,
92
+ /**
93
+ * Invoked on mount and layout changes with
94
+ * {nativeEvent: {layout: {x, y, width, height}}}
95
+ */
96
+ onLayout?: ?(event: LayoutChangeEvent) => unknown,
97
+ onLongPress?: ?(event: GestureResponderEvent) => unknown,
98
+ /**
99
+ * Called when the touch is released,
100
+ * but not if cancelled (e.g. by a scroll that steals the responder lock).
101
+ */
102
+ onPress?: ?(event: GestureResponderEvent) => unknown,
103
+ onPressIn?: ?(event: GestureResponderEvent) => unknown,
104
+ onPressOut?: ?(event: GestureResponderEvent) => unknown,
105
+ /**
106
+ * When the scroll view is disabled, this defines how far your
107
+ * touch may move off of the button, before deactivating the button.
108
+ * Once deactivated, try moving it back and you'll see that the button
109
+ * is once again reactivated! Move it back and forth several times
110
+ * while the scroll view is disabled. Ensure you pass in a constant
111
+ * to reduce memory allocations.
112
+ */
113
+ pressRetentionOffset?: ?EdgeInsetsOrSizeProp,
114
+ rejectResponderTermination?: ?boolean,
115
+ /**
116
+ * Used to locate this view in end-to-end tests.
117
+ */
118
+ testID?: ?string,
119
+ /**
120
+ * //FIXME: not in doc but available in examples
121
+ */
122
+ style?: ?ViewStyleProp,
123
+ };
124
+
42
125
  /** @build-types emit-as-interface Expo compatibility */
43
126
  export type TouchableWithoutFeedbackProps = Readonly<
44
- {
45
- children?: ?React.Node,
46
- /**
47
- * Delay in ms, from onPressIn, before onLongPress is called.
48
- */
49
- delayLongPress?: ?number,
50
- /**
51
- * Delay in ms, from the start of the touch, before onPressIn is called.
52
- */
53
- delayPressIn?: ?number,
54
- /**
55
- * Delay in ms, from the release of the touch, before onPressOut is called.
56
- */
57
- delayPressOut?: ?number,
58
- /**
59
- * If true, disable all interactions for this component.
60
- */
61
- disabled?: ?boolean,
62
- /**
63
- * Whether this View should be focusable with a non-touch input device,
64
- * eg. receive focus with a hardware keyboard / TV remote.
65
- */
66
- focusable?: ?boolean,
67
- /**
68
- * This defines how far your touch can start away from the button.
69
- * This is added to pressRetentionOffset when moving off of the button.
70
- * NOTE The touch area never extends past the parent view bounds and
71
- * the Z-index of sibling views always takes precedence if a touch hits
72
- * two overlapping views.
73
- */
74
- hitSlop?: ?EdgeInsetsOrSizeProp,
75
- /**
76
- * Used to reference react managed views from native code.
77
- */
78
- id?: string,
79
- importantForAccessibility?: ?(
80
- 'auto' | 'yes' | 'no' | 'no-hide-descendants'
81
- ),
82
- nativeID?: ?string,
83
- onAccessibilityAction?: ?(event: AccessibilityActionEvent) => unknown,
84
- /**
85
- * When `accessible` is true (which is the default) this may be called when
86
- * the OS-specific concept of "blur" occurs, meaning the element lost focus.
87
- * Some platforms may not have the concept of blur.
88
- */
89
- onBlur?: ?(event: BlurEvent) => unknown,
90
- /**
91
- * When `accessible` is true (which is the default) this may be called when
92
- * the OS-specific concept of "focus" occurs. Some platforms may not have
93
- * the concept of focus.
94
- */
95
- onFocus?: ?(event: FocusEvent) => unknown,
96
- /**
97
- * Invoked on mount and layout changes with
98
- * {nativeEvent: {layout: {x, y, width, height}}}
99
- */
100
- onLayout?: ?(event: LayoutChangeEvent) => unknown,
101
- onLongPress?: ?(event: GestureResponderEvent) => unknown,
102
- /**
103
- * Called when the touch is released,
104
- * but not if cancelled (e.g. by a scroll that steals the responder lock).
105
- */
106
- onPress?: ?(event: GestureResponderEvent) => unknown,
107
- onPressIn?: ?(event: GestureResponderEvent) => unknown,
108
- onPressOut?: ?(event: GestureResponderEvent) => unknown,
109
- /**
110
- * When the scroll view is disabled, this defines how far your
111
- * touch may move off of the button, before deactivating the button.
112
- * Once deactivated, try moving it back and you'll see that the button
113
- * is once again reactivated! Move it back and forth several times
114
- * while the scroll view is disabled. Ensure you pass in a constant
115
- * to reduce memory allocations.
116
- */
117
- pressRetentionOffset?: ?EdgeInsetsOrSizeProp,
118
- rejectResponderTermination?: ?boolean,
119
- /**
120
- * Used to locate this view in end-to-end tests.
121
- */
122
- testID?: ?string,
123
- /**
124
- * //FIXME: not in doc but available in examples
125
- */
126
- style?: ?ViewStyleProp,
127
- } & TouchableWithoutFeedbackPropsAndroid &
127
+ TouchableWithoutFeedbackPropsCore &
128
+ TouchableWithoutFeedbackPropsAndroid &
128
129
  TouchableWithoutFeedbackPropsIOS &
129
130
  AccessibilityProps,
130
131
  >;
@@ -349,10 +349,7 @@ export type AccessibilityPropsIOS = Readonly<{
349
349
  accessibilityRespondsToUserInteraction?: ?boolean,
350
350
  }>;
351
351
 
352
- /** @build-types emit-as-interface react-native-web compatibility */
353
- export type AccessibilityProps = Readonly<{
354
- ...AccessibilityPropsAndroid,
355
- ...AccessibilityPropsIOS,
352
+ type AccessibilityPropsCore = Readonly<{
356
353
  /**
357
354
  * When `true`, indicates that the view is an accessibility element.
358
355
  * By default, all the touchable elements are accessible.
@@ -434,3 +431,10 @@ export type AccessibilityProps = Readonly<{
434
431
  */
435
432
  'aria-hidden'?: ?boolean,
436
433
  }>;
434
+
435
+ /** @build-types emit-as-interface react-native-web compatibility */
436
+ export type AccessibilityProps = Readonly<{
437
+ ...AccessibilityPropsAndroid,
438
+ ...AccessibilityPropsIOS,
439
+ ...AccessibilityPropsCore,
440
+ }>;
@@ -28,8 +28,8 @@
28
28
  export default class ReactNativeVersion {
29
29
  static major: number = 0;
30
30
  static minor: number = 88;
31
- static patch: number = 0;
32
- static prerelease: string | null = '0rc2';
31
+ static patch: number = 101;
32
+ static prerelease: string | null = 'tv.0';
33
33
 
34
34
  static getVersionString(): string {
35
35
  return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
@@ -147,10 +147,7 @@ export type ImagePropsAndroid = Readonly<{
147
147
  resizeMultiplier?: ?number,
148
148
  }>;
149
149
 
150
- /** @build-types emit-as-interface Expo compatibility */
151
- export type ImagePropsBase = Readonly<{
152
- ...Omit<ViewProps, 'style'>,
153
-
150
+ type ImagePropsBaseCore = Readonly<{
154
151
  /**
155
152
  * When `true`, indicates the image is an accessibility element.
156
153
  */
@@ -327,27 +324,38 @@ export type ImagePropsBase = Readonly<{
327
324
  children?: empty,
328
325
  }>;
329
326
 
330
- /** @build-types emit-as-interface react-native-web compatibility */
331
- export type ImageProps = Readonly<{
332
- ...ImagePropsIOS,
333
- ...ImagePropsAndroid,
334
- ...ImagePropsBase,
327
+ /** @build-types emit-as-interface Expo compatibility */
328
+ export type ImagePropsBase = Readonly<{
329
+ ...Omit<
330
+ ViewProps,
331
+ | 'accessibilityLabel'
332
+ | 'accessible'
333
+ | 'aria-label'
334
+ | 'aria-labelledby'
335
+ | 'children'
336
+ | 'onLayout'
337
+ | 'style'
338
+ | 'testID',
339
+ >,
340
+ ...ImagePropsBaseCore,
341
+ }>;
335
342
 
343
+ type ImagePropsCore = Readonly<{
336
344
  /**
337
345
  * Style applied to the `Image` component.
338
346
  */
339
347
  style?: ?ImageStyleProp,
340
348
  }>;
341
349
 
342
- /**
343
- * ImageBackground is deprecated and will be removed in a future release.
344
- * Use a `View` with an absolutely positioned `Image` instead.
345
- * @see https://reactnative.dev/docs/imagebackground
346
- * @deprecated
347
- * @build-types emit-as-interface Uniwind compatibility
348
- */
349
- export type ImageBackgroundProps = Readonly<{
350
- ...ImageProps,
350
+ /** @build-types emit-as-interface react-native-web compatibility */
351
+ export type ImageProps = Readonly<{
352
+ ...ImagePropsIOS,
353
+ ...ImagePropsAndroid,
354
+ ...ImagePropsBase,
355
+ ...ImagePropsCore,
356
+ }>;
357
+
358
+ type ImageBackgroundPropsCore = Readonly<{
351
359
  children?: React.Node,
352
360
 
353
361
  /**
@@ -367,3 +375,15 @@ export type ImageBackgroundProps = Readonly<{
367
375
  */
368
376
  imageRef?: React.RefSetter<React.ElementRef<ImageType>>,
369
377
  }>;
378
+
379
+ /**
380
+ * ImageBackground is deprecated and will be removed in a future release.
381
+ * Use a `View` with an absolutely positioned `Image` instead.
382
+ * @see https://reactnative.dev/docs/imagebackground
383
+ * @deprecated
384
+ * @build-types emit-as-interface Uniwind compatibility
385
+ */
386
+ export type ImageBackgroundProps = Readonly<{
387
+ ...Omit<ImageProps, 'children' | 'style'>,
388
+ ...ImageBackgroundPropsCore,
389
+ }>;
@@ -112,9 +112,13 @@ export function LogBoxNotificationContainer(props: Props): React.Node {
112
112
 
113
113
  const styles = StyleSheet.create({
114
114
  list: {
115
+ alignItems: 'center',
115
116
  bottom: 20,
116
117
  left: 10,
117
118
  right: 10,
119
+ // The container spans the width of the screen, so it passes touches outside the toasts through to the app, such
120
+ // as to a tab bar beside them.
121
+ pointerEvents: 'box-none',
118
122
  position: 'absolute',
119
123
  },
120
124
  tvlist: {
@@ -124,9 +128,11 @@ const styles = StyleSheet.create({
124
128
  position: 'absolute',
125
129
  },
126
130
  toast: {
127
- borderRadius: 8,
131
+ borderRadius: 12,
128
132
  marginBottom: 5,
133
+ maxWidth: 600,
129
134
  overflow: 'hidden',
135
+ width: '100%',
130
136
  },
131
137
  });
132
138
 
@@ -24,8 +24,8 @@ export default function LogBoxNotificationDismissButton(props: {
24
24
  <LogBoxButton
25
25
  id={props.id}
26
26
  backgroundColor={{
27
- default: LogBoxStyle.getTextColor(0.3),
28
- pressed: LogBoxStyle.getTextColor(0.5),
27
+ default: LogBoxStyle.getTextColor(0.15),
28
+ pressed: LogBoxStyle.getTextColor(0.3),
29
29
  }}
30
30
  hitSlop={{
31
31
  top: 12,
@@ -64,6 +64,6 @@ const styles = StyleSheet.create({
64
64
  image: {
65
65
  height: 8,
66
66
  width: 8,
67
- tintColor: LogBoxStyle.getBackgroundColor(1),
67
+ tintColor: LogBoxStyle.getTextColor(0.8),
68
68
  },
69
69
  });
@@ -41,8 +41,7 @@ type OrientationChangeEvent = Readonly<{
41
41
  orientation: 'portrait' | 'landscape',
42
42
  }>;
43
43
 
44
- /** @build-types emit-as-interface Uniwind compatibility */
45
- export type ModalBaseProps = {
44
+ type ModalBasePropsCore = {
46
45
  /**
47
46
  * Controls how the modal animates. `'slide'` slides in from the bottom,
48
47
  * `'fade'` fades into view, `'none'` appears without animation.
@@ -92,6 +91,9 @@ export type ModalBaseProps = {
92
91
  modalRef?: React.RefSetter<ModalInstance>,
93
92
  };
94
93
 
94
+ /** @build-types emit-as-interface Uniwind compatibility */
95
+ export type ModalBaseProps = ModalBasePropsCore;
96
+
95
97
  export type ModalPropsIOS = {
96
98
  /**
97
99
  * Controls how the modal appears.
@@ -16,12 +16,9 @@ import type {
16
16
  ____DangerouslyImpreciseStyle_Internal,
17
17
  ____DangerouslyImpreciseStyleProp_Internal,
18
18
  ____FontVariant_Internal,
19
- ____ImageStyle_Internal,
20
19
  ____ImageStyleProp_Internal,
21
- ____TextStyle_Internal,
22
20
  ____TextStyleProp_Internal,
23
21
  ____TransformStyle_Internal,
24
- ____ViewStyle_Internal,
25
22
  ____ViewStyleProp_Internal,
26
23
  NativeColorValue,
27
24
  } from './StyleSheetTypes';
@@ -136,8 +133,7 @@ export type TypeForStyleKey<
136
133
  * object of styles to pass to a View that can't be precomputed with
137
134
  * StyleSheet.create.
138
135
  */
139
- /** @build-types emit-as-interface react-native-web compatibility */
140
- export type ViewStyle = ____ViewStyle_Internal;
136
+ export type {ViewStyle} from './StyleSheetTypes';
141
137
 
142
138
  /**
143
139
  * This type is an object of the different possible style
@@ -154,8 +150,7 @@ export type ViewStyle = ____ViewStyle_Internal;
154
150
  * object of styles to pass to a Text that can't be precomputed with
155
151
  * StyleSheet.create.
156
152
  */
157
- /** @build-types emit-as-interface react-native-web compatibility */
158
- export type TextStyle = ____TextStyle_Internal;
153
+ export type {TextStyle} from './StyleSheetTypes';
159
154
 
160
155
  /**
161
156
  * This type is an object of the different possible style
@@ -172,8 +167,7 @@ export type TextStyle = ____TextStyle_Internal;
172
167
  * object of styles to pass to an Image that can't be precomputed with
173
168
  * StyleSheet.create.
174
169
  */
175
- /** @build-types emit-as-interface react-native-web compatibility */
176
- export type ImageStyle = ____ImageStyle_Internal;
170
+ export type {ImageStyle} from './StyleSheetTypes';
177
171
 
178
172
  /**
179
173
  * WARNING: You probably shouldn't be using this type. This type is an object
@@ -15,12 +15,9 @@ import type {
15
15
  ____DangerouslyImpreciseStyle_Internal,
16
16
  ____DangerouslyImpreciseStyleProp_Internal,
17
17
  ____FontVariant_Internal,
18
- ____ImageStyle_Internal,
19
18
  ____ImageStyleProp_Internal,
20
- ____TextStyle_Internal,
21
19
  ____TextStyleProp_Internal,
22
20
  ____TransformStyle_Internal,
23
- ____ViewStyle_Internal,
24
21
  ____ViewStyleProp_Internal,
25
22
  NativeColorValue,
26
23
  } from './StyleSheetTypes';
@@ -137,8 +134,7 @@ export type TypeForStyleKey<
137
134
  * object of styles to pass to a View that can't be precomputed with
138
135
  * StyleSheet.create.
139
136
  */
140
- /** @build-types emit-as-interface react-native-web compatibility */
141
- export type ViewStyle = ____ViewStyle_Internal;
137
+ export type {ViewStyle} from './StyleSheetTypes';
142
138
 
143
139
  /**
144
140
  * This type is an object of the different possible style
@@ -155,8 +151,7 @@ export type ViewStyle = ____ViewStyle_Internal;
155
151
  * object of styles to pass to a Text that can't be precomputed with
156
152
  * StyleSheet.create.
157
153
  */
158
- /** @build-types emit-as-interface react-native-web compatibility */
159
- export type TextStyle = ____TextStyle_Internal;
154
+ export type {TextStyle} from './StyleSheetTypes';
160
155
 
161
156
  /**
162
157
  * This type is an object of the different possible style
@@ -173,8 +168,7 @@ export type TextStyle = ____TextStyle_Internal;
173
168
  * object of styles to pass to an Image that can't be precomputed with
174
169
  * StyleSheet.create.
175
170
  */
176
- /** @build-types emit-as-interface react-native-web compatibility */
177
- export type ImageStyle = ____ImageStyle_Internal;
171
+ export type {ImageStyle} from './StyleSheetTypes';
178
172
 
179
173
  /**
180
174
  * WARNING: You probably shouldn't be using this type. This type is an object