react-native-tvos 0.81.1-1 → 0.81.1-3
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.
- package/Libraries/Components/TV/TVFocusGuideView.js +29 -34
- package/Libraries/Components/View/View.js +20 -23
- package/Libraries/Core/ReactNativeVersion.js +2 -1
- package/React/Base/RCTVersion.m +2 -2
- package/ReactAndroid/gradle.properties +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.kt +1 -1
- package/ReactCommon/cxxreact/ReactNativeVersion.h +6 -2
- package/package.json +2 -2
- package/sdks/hermesc/linux64-bin/hermesc +0 -0
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermes-lit +15 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/sdks/hermesc/win64-bin/icudt64.dll +0 -0
- package/sdks/hermesc/win64-bin/icuin64.dll +0 -0
- package/sdks/hermesc/win64-bin/icuio64.dll +0 -0
- package/sdks/hermesc/win64-bin/icutest64.dll +0 -0
- package/sdks/hermesc/win64-bin/icutu64.dll +0 -0
- package/sdks/hermesc/win64-bin/icuuc64.dll +0 -0
- package/sdks/hermesc/win64-bin/msvcp140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140.dll +0 -0
- package/sdks/hermesc/win64-bin/vcruntime140_1.dll +0 -0
- package/types_generated/Libraries/Components/TV/TVFocusGuideView.d.ts +2 -2
|
@@ -12,7 +12,7 @@ import type {ViewProps} from '../View/ViewPropTypes';
|
|
|
12
12
|
import type {ComponentOrHandleType} from './tagForComponentOrHandle';
|
|
13
13
|
|
|
14
14
|
import Platform from '../../Utilities/Platform';
|
|
15
|
-
import
|
|
15
|
+
import useMergeRefs from '../../Utilities/useMergeRefs';
|
|
16
16
|
import View from '../View/View';
|
|
17
17
|
import {Commands} from '../View/ViewNativeComponent';
|
|
18
18
|
import tagForComponentOrHandle from './tagForComponentOrHandle';
|
|
@@ -57,17 +57,15 @@ export type TVFocusGuideViewImperativeMethods = $ReadOnly<{
|
|
|
57
57
|
setDestinations: (destinations: (ComponentOrHandleType | number)[]) => void,
|
|
58
58
|
}>;
|
|
59
59
|
|
|
60
|
-
function TVFocusGuideView(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
forwardedRef: any,
|
|
70
|
-
): React.Node {
|
|
60
|
+
function TVFocusGuideView({
|
|
61
|
+
enabled = true,
|
|
62
|
+
safePadding,
|
|
63
|
+
destinations: destinationsProp,
|
|
64
|
+
autoFocus,
|
|
65
|
+
focusable,
|
|
66
|
+
ref,
|
|
67
|
+
...props
|
|
68
|
+
}: TVFocusGuideViewProps): React.Node {
|
|
71
69
|
const focusGuideRef = React.useRef<React.ElementRef<typeof View> | null>(
|
|
72
70
|
null,
|
|
73
71
|
);
|
|
@@ -78,7 +76,7 @@ function TVFocusGuideView(
|
|
|
78
76
|
const dests: number[] = (destinations || [])
|
|
79
77
|
.map((destination: any) => tagForComponentOrHandle(destination))
|
|
80
78
|
.filter(Boolean);
|
|
81
|
-
|
|
79
|
+
|
|
82
80
|
if (focusGuideRef.current != null) {
|
|
83
81
|
Commands.setDestinations(focusGuideRef.current, dests);
|
|
84
82
|
}
|
|
@@ -87,26 +85,23 @@ function TVFocusGuideView(
|
|
|
87
85
|
[],
|
|
88
86
|
);
|
|
89
87
|
|
|
90
|
-
const
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
})
|
|
109
|
-
}, [forwardedRef, setDestinations]);
|
|
88
|
+
const setLocalRef = React.useCallback(
|
|
89
|
+
(instance: HostInstance | null) => {
|
|
90
|
+
// $FlowExpectedError[incompatible-type]
|
|
91
|
+
focusGuideRef.current = instance;
|
|
92
|
+
|
|
93
|
+
if (instance != null) {
|
|
94
|
+
// $FlowFixMe[prop-missing]
|
|
95
|
+
// $FlowFixMe[unsafe-object-assign]
|
|
96
|
+
Object.assign(instance, {
|
|
97
|
+
setDestinations,
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
},
|
|
101
|
+
[setDestinations],
|
|
102
|
+
);
|
|
103
|
+
|
|
104
|
+
const mergedRef = useMergeRefs(setLocalRef, ref);
|
|
110
105
|
|
|
111
106
|
React.useEffect(() => {
|
|
112
107
|
if (destinationsProp !== null && destinationsProp !== undefined) {
|
|
@@ -127,7 +122,7 @@ function TVFocusGuideView(
|
|
|
127
122
|
<View
|
|
128
123
|
{...props}
|
|
129
124
|
style={style}
|
|
130
|
-
ref={
|
|
125
|
+
ref={mergedRef}
|
|
131
126
|
collapsable={false}
|
|
132
127
|
autoFocus={autoFocus}
|
|
133
128
|
// tvOS only prop
|
|
@@ -12,7 +12,7 @@ import type {ViewProps} from './ViewPropTypes';
|
|
|
12
12
|
|
|
13
13
|
import * as ReactNativeFeatureFlags from '../../../src/private/featureflags/ReactNativeFeatureFlags';
|
|
14
14
|
import TextAncestorContext from '../../Text/TextAncestorContext';
|
|
15
|
-
import
|
|
15
|
+
import useMergeRefs from '../../Utilities/useMergeRefs';
|
|
16
16
|
import ViewNativeComponent from './ViewNativeComponent';
|
|
17
17
|
import {Commands} from './ViewNativeComponent';
|
|
18
18
|
import * as React from 'react';
|
|
@@ -39,26 +39,23 @@ component View(
|
|
|
39
39
|
}
|
|
40
40
|
}, []);
|
|
41
41
|
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
//
|
|
49
|
-
//
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
},
|
|
60
|
-
})
|
|
61
|
-
}, [requestTVFocus]);
|
|
42
|
+
const setLocalRef = React.useCallback(
|
|
43
|
+
(instance: HostInstance | null) => {
|
|
44
|
+
// $FlowExpectedError[incompatible-type]
|
|
45
|
+
viewRef.current = instance;
|
|
46
|
+
|
|
47
|
+
if (instance != null) {
|
|
48
|
+
// $FlowFixMe[prop-missing]
|
|
49
|
+
// $FlowFixMe[unsafe-object-assign]
|
|
50
|
+
Object.assign(instance, {
|
|
51
|
+
requestTVFocus,
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
[requestTVFocus],
|
|
56
|
+
);
|
|
57
|
+
|
|
58
|
+
const mergedRef = useMergeRefs(setLocalRef, ref);
|
|
62
59
|
|
|
63
60
|
let actualView;
|
|
64
61
|
if (ReactNativeFeatureFlags.reduceDefaultPropsInView()) {
|
|
@@ -151,7 +148,7 @@ component View(
|
|
|
151
148
|
ref == null ? (
|
|
152
149
|
<ViewNativeComponent {...processedProps} />
|
|
153
150
|
) : (
|
|
154
|
-
<ViewNativeComponent {...processedProps} ref={
|
|
151
|
+
<ViewNativeComponent {...processedProps} ref={mergedRef} />
|
|
155
152
|
);
|
|
156
153
|
} else {
|
|
157
154
|
const {
|
|
@@ -232,7 +229,7 @@ component View(
|
|
|
232
229
|
: importantForAccessibility
|
|
233
230
|
}
|
|
234
231
|
nativeID={id ?? nativeID}
|
|
235
|
-
ref={
|
|
232
|
+
ref={mergedRef}
|
|
236
233
|
/>
|
|
237
234
|
);
|
|
238
235
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
* LICENSE file in the root directory of this source tree.
|
|
6
6
|
*
|
|
7
7
|
* @flow strict
|
|
8
|
+
* @noformat
|
|
8
9
|
* @generated by scripts/releases/set-version.js
|
|
9
10
|
*/
|
|
10
11
|
|
|
@@ -17,5 +18,5 @@ export const version: $ReadOnly<{
|
|
|
17
18
|
major: 0,
|
|
18
19
|
minor: 81,
|
|
19
20
|
patch: 1,
|
|
20
|
-
prerelease: '
|
|
21
|
+
prerelease: '3',
|
|
21
22
|
};
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -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 by scripts/releases/set-
|
|
7
|
+
* @generated by scripts/releases/set-version.js
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
#import "RCTVersion.h"
|
|
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
24
24
|
RCTVersionMajor: @(0),
|
|
25
25
|
RCTVersionMinor: @(81),
|
|
26
26
|
RCTVersionPatch: @(1),
|
|
27
|
-
RCTVersionPrerelease: @"
|
|
27
|
+
RCTVersionPrerelease: @"3",
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
return __rnVersion;
|
|
@@ -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 by scripts/releases/set-
|
|
7
|
+
* @generated by scripts/releases/set-version.js
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
#pragma once
|
|
@@ -12,13 +12,17 @@
|
|
|
12
12
|
#include <cstdint>
|
|
13
13
|
#include <string_view>
|
|
14
14
|
|
|
15
|
+
#define REACT_NATIVE_VERSION_MAJOR 0
|
|
16
|
+
#define REACT_NATIVE_VERSION_MINOR 81
|
|
17
|
+
#define REACT_NATIVE_VERSION_PATCH 1
|
|
18
|
+
|
|
15
19
|
namespace facebook::react {
|
|
16
20
|
|
|
17
21
|
constexpr struct {
|
|
18
22
|
int32_t Major = 0;
|
|
19
23
|
int32_t Minor = 81;
|
|
20
24
|
int32_t Patch = 1;
|
|
21
|
-
std::string_view Prerelease = "
|
|
25
|
+
std::string_view Prerelease = "3";
|
|
22
26
|
} ReactNativeVersion;
|
|
23
27
|
|
|
24
28
|
} // namespace facebook::react
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-tvos",
|
|
3
|
-
"version": "0.81.1-
|
|
3
|
+
"version": "0.81.1-3",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -198,7 +198,7 @@
|
|
|
198
198
|
"whatwg-fetch": "^3.0.0",
|
|
199
199
|
"ws": "^6.2.3",
|
|
200
200
|
"yargs": "^17.6.2",
|
|
201
|
-
"@react-native-tvos/virtualized-lists": "0.81.1-
|
|
201
|
+
"@react-native-tvos/virtualized-lists": "0.81.1-3"
|
|
202
202
|
},
|
|
203
203
|
"codegenConfig": {
|
|
204
204
|
"libraries": [
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
+
#
|
|
4
|
+
# This source code is licensed under the MIT license found in the
|
|
5
|
+
# LICENSE file in the root directory of this source tree.
|
|
6
|
+
|
|
7
|
+
import os
|
|
8
|
+
import sys
|
|
9
|
+
|
|
10
|
+
# Make sure we can find the lit package.
|
|
11
|
+
sys.path.insert(0, os.path.join("/Users/runner/work/react-native/react-native/packages/react-native/sdks/hermes/external/llvh", 'utils', 'lit'))
|
|
12
|
+
|
|
13
|
+
if __name__=='__main__':
|
|
14
|
+
from lit.main import main
|
|
15
|
+
main({})
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
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<<
|
|
7
|
+
* @generated SignedSource<<6a73d474d9a2542964617b14e756698c>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Components/TV/TVFocusGuideView.js
|
|
@@ -65,7 +65,7 @@ type TVFocusGuideViewProps = Readonly<Omit<ViewProps, keyof {
|
|
|
65
65
|
export type TVFocusGuideViewImperativeMethods = Readonly<{
|
|
66
66
|
setDestinations: (destinations: (ComponentOrHandleType | number)[]) => void;
|
|
67
67
|
}>;
|
|
68
|
-
declare function TVFocusGuideView($$PARAM_0$$: TVFocusGuideViewProps
|
|
68
|
+
declare function TVFocusGuideView($$PARAM_0$$: TVFocusGuideViewProps): React.ReactNode;
|
|
69
69
|
declare const $$TVFocusGuideView: typeof TVFocusGuideView;
|
|
70
70
|
declare type $$TVFocusGuideView = typeof $$TVFocusGuideView;
|
|
71
71
|
export default $$TVFocusGuideView;
|