react-native-tvos 0.76.5-0 → 0.76.6-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 (41) hide show
  1. package/Libraries/Components/Pressable/Pressable.d.ts +1 -1
  2. package/Libraries/Core/ReactNativeVersion.js +1 -1
  3. package/Libraries/Pressability/Pressability.js +2 -2
  4. package/Libraries/Text/TextInput/RCTBaseTextInputView.mm +1 -1
  5. package/React/Base/RCTConvert.mm +3 -1
  6. package/React/Base/RCTVersion.m +1 -1
  7. package/React/Fabric/Mounting/ComponentViews/TextInput/RCTTextInputComponentView.mm +4 -0
  8. package/React/Fabric/Mounting/ComponentViews/View/RCTViewComponentView.mm +12 -9
  9. package/ReactAndroid/cmake-utils/ReactNative-application.cmake +18 -3
  10. package/ReactAndroid/gradle.properties +1 -1
  11. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlags.kt +1 -7
  12. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxAccessor.kt +1 -11
  13. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsCxxInterop.kt +1 -3
  14. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsDefaults.kt +1 -3
  15. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsLocalAccessor.kt +1 -12
  16. package/ReactAndroid/src/main/java/com/facebook/react/internal/featureflags/ReactNativeFeatureFlagsProvider.kt +1 -3
  17. package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
  18. package/ReactAndroid/src/main/java/com/facebook/react/views/view/ReactViewGroup.java +1 -0
  19. package/ReactAndroid/src/main/jni/react/fabric/Binding.cpp +17 -19
  20. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.cpp +1 -15
  21. package/ReactAndroid/src/main/jni/react/featureflags/JReactNativeFeatureFlagsCxxInterop.h +1 -4
  22. package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
  23. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.cpp +1 -5
  24. package/ReactCommon/react/featureflags/ReactNativeFeatureFlags.h +1 -6
  25. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.cpp +47 -65
  26. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsAccessor.h +2 -4
  27. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsDefaults.h +1 -5
  28. package/ReactCommon/react/featureflags/ReactNativeFeatureFlagsProvider.h +1 -2
  29. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.cpp +1 -6
  30. package/ReactCommon/react/nativemodule/featureflags/NativeReactNativeFeatureFlags.h +1 -3
  31. package/ReactCommon/react/renderer/textlayoutmanager/TextMeasureCache.h +2 -3
  32. package/ReactCommon/react/renderer/textlayoutmanager/platform/ios/react/renderer/textlayoutmanager/RCTAttributedTextUtils.mm +2 -0
  33. package/package.json +8 -8
  34. package/scripts/cocoapods/utils.rb +6 -6
  35. package/scripts/codegen/generate-artifacts-executor.js +6 -6
  36. package/sdks/hermesc/osx-bin/hermes +0 -0
  37. package/sdks/hermesc/osx-bin/hermesc +0 -0
  38. package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
  39. package/src/private/featureflags/ReactNativeFeatureFlags.js +1 -6
  40. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +1 -2
  41. package/types/public/ReactNativeTVTypes.d.ts +9 -7
Binary file
Binary file
Binary file
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<0bff47ec5af8ed96d8b2abe351f318f1>>
7
+ * @generated SignedSource<<cbc00457c9b6f4639083b6fa970683eb>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -46,7 +46,6 @@ export type ReactNativeFeatureFlagsJsOnlyOverrides = Partial<ReactNativeFeatureF
46
46
  export type ReactNativeFeatureFlags = {
47
47
  ...ReactNativeFeatureFlagsJsOnly,
48
48
  commonTestFlag: Getter<boolean>,
49
- allowRecursiveCommitsWithSynchronousMountOnAndroid: Getter<boolean>,
50
49
  batchRenderingUpdatesInEventLoop: Getter<boolean>,
51
50
  completeReactInstanceCreationOnBgThreadOnAndroid: Getter<boolean>,
52
51
  destroyFabricSurfacesInReactInstanceManager: Getter<boolean>,
@@ -164,10 +163,6 @@ export const useRefsForTextInputState: Getter<boolean> = createJavaScriptFlagGet
164
163
  * Common flag for testing. Do NOT modify.
165
164
  */
166
165
  export const commonTestFlag: Getter<boolean> = createNativeFlagGetter('commonTestFlag', false);
167
- /**
168
- * Adds support for recursively processing commits that mount synchronously (Android only).
169
- */
170
- export const allowRecursiveCommitsWithSynchronousMountOnAndroid: Getter<boolean> = createNativeFlagGetter('allowRecursiveCommitsWithSynchronousMountOnAndroid', false);
171
166
  /**
172
167
  * When enabled, the RuntimeScheduler processing the event loop will batch all rendering updates and dispatch them together at the end of each iteration of the loop.
173
168
  */
@@ -4,7 +4,7 @@
4
4
  * This source code is licensed under the MIT license found in the
5
5
  * LICENSE file in the root directory of this source tree.
6
6
  *
7
- * @generated SignedSource<<6d4aa48dfdd3b78ac5f0f8e70eb3895f>>
7
+ * @generated SignedSource<<ac46e3eb810d890a0f8199fe100936cb>>
8
8
  * @flow strict-local
9
9
  */
10
10
 
@@ -24,7 +24,6 @@ import * as TurboModuleRegistry from '../../../../Libraries/TurboModule/TurboMod
24
24
 
25
25
  export interface Spec extends TurboModule {
26
26
  +commonTestFlag?: () => boolean;
27
- +allowRecursiveCommitsWithSynchronousMountOnAndroid?: () => boolean;
28
27
  +batchRenderingUpdatesInEventLoop?: () => boolean;
29
28
  +completeReactInstanceCreationOnBgThreadOnAndroid?: () => boolean;
30
29
  +destroyFabricSurfacesInReactInstanceManager?: () => boolean;
@@ -2,6 +2,8 @@ import * as React from 'react';
2
2
  import type { View, ScrollViewProps, HostComponent, EventSubscription } from 'react-native';
3
3
 
4
4
  declare module 'react-native' {
5
+ export type FocusDestination = null | number | React.Component<any, any> | React.ComponentClass<any>;
6
+
5
7
  interface ViewProps {
6
8
  /**
7
9
  * Android TV only prop
@@ -10,29 +12,29 @@ declare module 'react-native' {
10
12
  /**
11
13
  * TV next focus down (see documentation for the View component).
12
14
  */
13
- nextFocusDown?: number | undefined,
15
+ nextFocusDown?: FocusDestination | undefined,
14
16
 
15
17
  /**
16
18
  * TV next focus forward (see documentation for the View component).
17
19
  *
18
20
  * @platform android
19
21
  */
20
- nextFocusForward?: number | undefined,
22
+ nextFocusForward?: FocusDestination | undefined,
21
23
 
22
24
  /**
23
25
  * TV next focus left (see documentation for the View component).
24
26
  */
25
- nextFocusLeft?: number | undefined,
27
+ nextFocusLeft?: FocusDestination | undefined,
26
28
 
27
29
  /**
28
30
  * TV next focus right (see documentation for the View component).
29
31
  */
30
- nextFocusRight?: number | undefined,
32
+ nextFocusRight?: FocusDestination | undefined,
31
33
 
32
34
  /**
33
35
  * TV next focus up (see documentation for the View component).
34
36
  */
35
- nextFocusUp?: number | undefined,
37
+ nextFocusUp?: FocusDestination | undefined,
36
38
  }
37
39
 
38
40
  export interface NativeMethods {
@@ -118,7 +120,7 @@ declare module 'react-native' {
118
120
  /**
119
121
  * Array of `Component`s to register as destinations with `UIFocusGuide`
120
122
  */
121
- destinations?: (null | number | React.Component<any, any> | React.ComponentClass<any>)[] | undefined;
123
+ destinations?: FocusDestination[] | undefined;
122
124
  /**
123
125
  * If true, `TVFocusGuide` will automatically manage focus for you.
124
126
  * It will redirect the focus to the first focusable child on the first visit.
@@ -154,7 +156,7 @@ declare module 'react-native' {
154
156
 
155
157
  export type FocusGuideMethods = {
156
158
  setDestinations: (
157
- destinations: (React.ElementRef<HostComponent<unknown>> | null | undefined)[],
159
+ destinations: FocusDestination[],
158
160
  ) => void;
159
161
  }
160
162