react-native 0.82.0-nightly-20250901-0a0b48b5f → 0.82.0-rc.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.
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Lists/FlatList.js +8 -8
- package/Libraries/Lists/ViewabilityHelper.js +1 -1
- package/Libraries/Lists/VirtualizedList.js +0 -1
- package/React/Base/RCTVersion.m +1 -1
- 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 +1 -1
- package/ReactCommon/react/renderer/components/view/AccessibilityPrimitives.h +60 -2
- package/ReactCommon/react/renderer/components/view/accessibilityPropsConversions.h +0 -56
- package/ReactCommon/react/renderer/components/view/conversions.h +1 -1
- package/ReactCommon/react/renderer/components/view/platform/android/react/renderer/components/view/HostPlatformViewProps.cpp +40 -3
- package/index.js.flow +0 -1
- package/package.json +8 -8
- package/sdks/.hermesversion +1 -0
- package/sdks/hermesc/osx-bin/hermes +0 -0
- package/sdks/hermesc/osx-bin/hermesc +0 -0
- package/sdks/hermesc/win64-bin/hermesc.exe +0 -0
- package/types_generated/Libraries/Lists/VirtualizedList.d.ts +2 -2
- package/types_generated/index.d.ts +2 -2
|
@@ -29,7 +29,7 @@ export default class ReactNativeVersion {
|
|
|
29
29
|
static major: number = 0;
|
|
30
30
|
static minor: number = 82;
|
|
31
31
|
static patch: number = 0;
|
|
32
|
-
static prerelease: string | null = '
|
|
32
|
+
static prerelease: string | null = 'rc.0';
|
|
33
33
|
|
|
34
34
|
static getVersionString(): string {
|
|
35
35
|
return `${this.major}.${this.minor}.${this.patch}${this.prerelease != null ? `-${this.prerelease}` : ''}`;
|
|
@@ -13,8 +13,8 @@ import type {ViewStyleProp} from '../StyleSheet/StyleSheet';
|
|
|
13
13
|
import type {
|
|
14
14
|
ListRenderItem,
|
|
15
15
|
ListRenderItemInfo,
|
|
16
|
-
ListViewToken,
|
|
17
16
|
ViewabilityConfigCallbackPair,
|
|
17
|
+
ViewToken,
|
|
18
18
|
VirtualizedListProps,
|
|
19
19
|
} from '@react-native/virtualized-lists';
|
|
20
20
|
|
|
@@ -573,7 +573,7 @@ class FlatList<ItemT = any> extends React.PureComponent<FlatListProps<ItemT>> {
|
|
|
573
573
|
return keyExtractor(items, index);
|
|
574
574
|
};
|
|
575
575
|
|
|
576
|
-
_pushMultiColumnViewable(arr: Array<
|
|
576
|
+
_pushMultiColumnViewable(arr: Array<ViewToken>, v: ViewToken): void {
|
|
577
577
|
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
578
578
|
const keyExtractor = this.props.keyExtractor ?? defaultKeyExtractor;
|
|
579
579
|
v.item.forEach((item, ii) => {
|
|
@@ -585,22 +585,22 @@ class FlatList<ItemT = any> extends React.PureComponent<FlatListProps<ItemT>> {
|
|
|
585
585
|
|
|
586
586
|
_createOnViewableItemsChanged(
|
|
587
587
|
onViewableItemsChanged: ?(info: {
|
|
588
|
-
viewableItems: Array<
|
|
589
|
-
changed: Array<
|
|
588
|
+
viewableItems: Array<ViewToken>,
|
|
589
|
+
changed: Array<ViewToken>,
|
|
590
590
|
...
|
|
591
591
|
}) => void,
|
|
592
592
|
// $FlowFixMe[missing-local-annot]
|
|
593
593
|
) {
|
|
594
594
|
return (info: {
|
|
595
|
-
viewableItems: Array<
|
|
596
|
-
changed: Array<
|
|
595
|
+
viewableItems: Array<ViewToken>,
|
|
596
|
+
changed: Array<ViewToken>,
|
|
597
597
|
...
|
|
598
598
|
}) => {
|
|
599
599
|
const numColumns = numColumnsOrDefault(this.props.numColumns);
|
|
600
600
|
if (onViewableItemsChanged) {
|
|
601
601
|
if (numColumns > 1) {
|
|
602
|
-
const changed: Array<
|
|
603
|
-
const viewableItems: Array<
|
|
602
|
+
const changed: Array<ViewToken> = [];
|
|
603
|
+
const viewableItems: Array<ViewToken> = [];
|
|
604
604
|
info.viewableItems.forEach(v =>
|
|
605
605
|
this._pushMultiColumnViewable(viewableItems, v),
|
|
606
606
|
);
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -12,6 +12,8 @@
|
|
|
12
12
|
#include <string>
|
|
13
13
|
#include <vector>
|
|
14
14
|
|
|
15
|
+
#include <react/renderer/debug/DebugStringConvertible.h>
|
|
16
|
+
|
|
15
17
|
namespace facebook::react {
|
|
16
18
|
|
|
17
19
|
enum class AccessibilityTraits : uint32_t {
|
|
@@ -53,6 +55,27 @@ struct AccessibilityAction {
|
|
|
53
55
|
std::optional<std::string> label{};
|
|
54
56
|
};
|
|
55
57
|
|
|
58
|
+
inline std::string toString(const AccessibilityAction& accessibilityAction) {
|
|
59
|
+
std::string result = accessibilityAction.name;
|
|
60
|
+
if (accessibilityAction.label.has_value()) {
|
|
61
|
+
result += ": '" + accessibilityAction.label.value() + "'";
|
|
62
|
+
}
|
|
63
|
+
return result;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
inline std::string toString(
|
|
67
|
+
std::vector<AccessibilityAction> accessibilityActions) {
|
|
68
|
+
std::string result = "[";
|
|
69
|
+
for (size_t i = 0; i < accessibilityActions.size(); i++) {
|
|
70
|
+
result += toString(accessibilityActions[i]);
|
|
71
|
+
if (i < accessibilityActions.size() - 1) {
|
|
72
|
+
result += ", ";
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
result += "]";
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
|
|
56
79
|
inline static bool operator==(
|
|
57
80
|
const AccessibilityAction& lhs,
|
|
58
81
|
const AccessibilityAction& rhs) {
|
|
@@ -87,6 +110,29 @@ constexpr bool operator!=(
|
|
|
87
110
|
return !(rhs == lhs);
|
|
88
111
|
}
|
|
89
112
|
|
|
113
|
+
#if RN_DEBUG_STRING_CONVERTIBLE
|
|
114
|
+
inline std::string toString(AccessibilityState::CheckedState state) {
|
|
115
|
+
switch (state) {
|
|
116
|
+
case AccessibilityState::Unchecked:
|
|
117
|
+
return "Unchecked";
|
|
118
|
+
case AccessibilityState::Checked:
|
|
119
|
+
return "Checked";
|
|
120
|
+
case AccessibilityState::Mixed:
|
|
121
|
+
return "Mixed";
|
|
122
|
+
case AccessibilityState::None:
|
|
123
|
+
return "None";
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
inline std::string toString(const AccessibilityState& accessibilityState) {
|
|
128
|
+
return "{disabled:" + toString(accessibilityState.disabled) +
|
|
129
|
+
",selected:" + toString(accessibilityState.selected) +
|
|
130
|
+
",checked:" + toString(accessibilityState.checked) +
|
|
131
|
+
",busy:" + toString(accessibilityState.busy) +
|
|
132
|
+
",expanded:" + toString(accessibilityState.expanded) + "}";
|
|
133
|
+
}
|
|
134
|
+
#endif
|
|
135
|
+
|
|
90
136
|
struct AccessibilityLabelledBy {
|
|
91
137
|
std::vector<std::string> value{};
|
|
92
138
|
};
|
|
@@ -136,7 +182,19 @@ enum class AccessibilityLiveRegion : uint8_t {
|
|
|
136
182
|
Assertive,
|
|
137
183
|
};
|
|
138
184
|
|
|
139
|
-
|
|
185
|
+
inline std::string toString(
|
|
186
|
+
const AccessibilityLiveRegion& accessibilityLiveRegion) {
|
|
187
|
+
switch (accessibilityLiveRegion) {
|
|
188
|
+
case AccessibilityLiveRegion::None:
|
|
189
|
+
return "none";
|
|
190
|
+
case AccessibilityLiveRegion::Polite:
|
|
191
|
+
return "polite";
|
|
192
|
+
case AccessibilityLiveRegion::Assertive:
|
|
193
|
+
return "assertive";
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
enum class AccessibilityRole {
|
|
140
198
|
None,
|
|
141
199
|
Button,
|
|
142
200
|
Dropdownlist,
|
|
@@ -179,7 +237,7 @@ enum class AccessibilityRole : uint8_t {
|
|
|
179
237
|
Iconmenu,
|
|
180
238
|
};
|
|
181
239
|
|
|
182
|
-
enum class Role
|
|
240
|
+
enum class Role {
|
|
183
241
|
Alert,
|
|
184
242
|
Alertdialog,
|
|
185
243
|
Application,
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
#include <react/renderer/components/view/AccessibilityPrimitives.h>
|
|
15
15
|
#include <react/renderer/core/PropsParserContext.h>
|
|
16
16
|
#include <react/renderer/core/propsConversions.h>
|
|
17
|
-
#include <react/renderer/debug/DebugStringConvertible.h>
|
|
18
17
|
|
|
19
18
|
#include <unordered_map>
|
|
20
19
|
|
|
@@ -783,59 +782,4 @@ inline void fromRawValue(
|
|
|
783
782
|
result = Role::None;
|
|
784
783
|
}
|
|
785
784
|
|
|
786
|
-
inline std::string toString(AccessibilityLiveRegion accessibilityLiveRegion) {
|
|
787
|
-
switch (accessibilityLiveRegion) {
|
|
788
|
-
case AccessibilityLiveRegion::None:
|
|
789
|
-
return "none";
|
|
790
|
-
case AccessibilityLiveRegion::Polite:
|
|
791
|
-
return "polite";
|
|
792
|
-
case AccessibilityLiveRegion::Assertive:
|
|
793
|
-
return "assertive";
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
|
|
797
|
-
#if RN_DEBUG_STRING_CONVERTIBLE
|
|
798
|
-
inline std::string toString(AccessibilityState::CheckedState state) {
|
|
799
|
-
switch (state) {
|
|
800
|
-
case AccessibilityState::Unchecked:
|
|
801
|
-
return "Unchecked";
|
|
802
|
-
case AccessibilityState::Checked:
|
|
803
|
-
return "Checked";
|
|
804
|
-
case AccessibilityState::Mixed:
|
|
805
|
-
return "Mixed";
|
|
806
|
-
case AccessibilityState::None:
|
|
807
|
-
return "None";
|
|
808
|
-
}
|
|
809
|
-
}
|
|
810
|
-
|
|
811
|
-
inline std::string toString(const AccessibilityAction& accessibilityAction) {
|
|
812
|
-
std::string result = accessibilityAction.name;
|
|
813
|
-
if (accessibilityAction.label.has_value()) {
|
|
814
|
-
result += ": '" + accessibilityAction.label.value() + "'";
|
|
815
|
-
}
|
|
816
|
-
return result;
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
inline std::string toString(
|
|
820
|
-
std::vector<AccessibilityAction> accessibilityActions) {
|
|
821
|
-
std::string result = "[";
|
|
822
|
-
for (size_t i = 0; i < accessibilityActions.size(); i++) {
|
|
823
|
-
result += toString(accessibilityActions[i]);
|
|
824
|
-
if (i < accessibilityActions.size() - 1) {
|
|
825
|
-
result += ", ";
|
|
826
|
-
}
|
|
827
|
-
}
|
|
828
|
-
result += "]";
|
|
829
|
-
return result;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
inline std::string toString(const AccessibilityState& accessibilityState) {
|
|
833
|
-
return "{disabled:" + toString(accessibilityState.disabled) +
|
|
834
|
-
",selected:" + toString(accessibilityState.selected) +
|
|
835
|
-
",checked:" + toString(accessibilityState.checked) +
|
|
836
|
-
",busy:" + toString(accessibilityState.busy) +
|
|
837
|
-
",expanded:" + toString(accessibilityState.expanded) + "}";
|
|
838
|
-
}
|
|
839
|
-
#endif
|
|
840
|
-
|
|
841
785
|
} // namespace facebook::react
|
|
@@ -848,7 +848,7 @@ inline void fromRawValue(
|
|
|
848
848
|
react_native_expect(false);
|
|
849
849
|
}
|
|
850
850
|
|
|
851
|
-
inline std::string toString(PointerEventsMode value) {
|
|
851
|
+
inline std::string toString(const PointerEventsMode& value) {
|
|
852
852
|
switch (value) {
|
|
853
853
|
case PointerEventsMode::Auto:
|
|
854
854
|
return "auto";
|
|
@@ -618,7 +618,21 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
|
|
|
618
618
|
}
|
|
619
619
|
|
|
620
620
|
if (pointerEvents != oldProps->pointerEvents) {
|
|
621
|
-
|
|
621
|
+
std::string value;
|
|
622
|
+
switch (pointerEvents) {
|
|
623
|
+
case PointerEventsMode::BoxOnly:
|
|
624
|
+
result["pointerEvents"] = "box-only";
|
|
625
|
+
break;
|
|
626
|
+
case PointerEventsMode::BoxNone:
|
|
627
|
+
result["pointerEvents"] = "box-none";
|
|
628
|
+
break;
|
|
629
|
+
case PointerEventsMode::None:
|
|
630
|
+
result["pointerEvents"] = "none";
|
|
631
|
+
break;
|
|
632
|
+
default:
|
|
633
|
+
result["pointerEvents"] = "auto";
|
|
634
|
+
break;
|
|
635
|
+
}
|
|
622
636
|
}
|
|
623
637
|
|
|
624
638
|
if (hitSlop != oldProps->hitSlop) {
|
|
@@ -903,7 +917,17 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
|
|
|
903
917
|
}
|
|
904
918
|
|
|
905
919
|
if (accessibilityLiveRegion != oldProps->accessibilityLiveRegion) {
|
|
906
|
-
|
|
920
|
+
switch (accessibilityLiveRegion) {
|
|
921
|
+
case AccessibilityLiveRegion::Assertive:
|
|
922
|
+
result["accessibilityLiveRegion"] = "assertive";
|
|
923
|
+
break;
|
|
924
|
+
case AccessibilityLiveRegion::Polite:
|
|
925
|
+
result["accessibilityLiveRegion"] = "polite";
|
|
926
|
+
break;
|
|
927
|
+
case AccessibilityLiveRegion::None:
|
|
928
|
+
result["accessibilityLiveRegion"] = "none";
|
|
929
|
+
break;
|
|
930
|
+
}
|
|
907
931
|
}
|
|
908
932
|
|
|
909
933
|
if (accessibilityHint != oldProps->accessibilityHint) {
|
|
@@ -979,7 +1003,20 @@ folly::dynamic HostPlatformViewProps::getDiffProps(
|
|
|
979
1003
|
}
|
|
980
1004
|
|
|
981
1005
|
if (importantForAccessibility != oldProps->importantForAccessibility) {
|
|
982
|
-
|
|
1006
|
+
switch (importantForAccessibility) {
|
|
1007
|
+
case ImportantForAccessibility::Auto:
|
|
1008
|
+
result["importantForAccessibility"] = "auto";
|
|
1009
|
+
break;
|
|
1010
|
+
case ImportantForAccessibility::Yes:
|
|
1011
|
+
result["importantForAccessibility"] = "yes";
|
|
1012
|
+
break;
|
|
1013
|
+
case ImportantForAccessibility::No:
|
|
1014
|
+
result["importantForAccessibility"] = "no";
|
|
1015
|
+
break;
|
|
1016
|
+
case ImportantForAccessibility::NoHideDescendants:
|
|
1017
|
+
result["importantForAccessibility"] = "noHideDescendants";
|
|
1018
|
+
break;
|
|
1019
|
+
}
|
|
983
1020
|
}
|
|
984
1021
|
|
|
985
1022
|
return result;
|
package/index.js.flow
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native",
|
|
3
|
-
"version": "0.82.0-
|
|
3
|
+
"version": "0.82.0-rc.0",
|
|
4
4
|
"description": "A framework for building native apps using React",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -162,13 +162,13 @@
|
|
|
162
162
|
},
|
|
163
163
|
"dependencies": {
|
|
164
164
|
"@jest/create-cache-key-function": "^29.7.0",
|
|
165
|
-
"@react-native/assets-registry": "0.82.0-
|
|
166
|
-
"@react-native/codegen": "0.82.0-
|
|
167
|
-
"@react-native/community-cli-plugin": "0.82.0-
|
|
168
|
-
"@react-native/gradle-plugin": "0.82.0-
|
|
169
|
-
"@react-native/js-polyfills": "0.82.0-
|
|
170
|
-
"@react-native/normalize-colors": "0.82.0-
|
|
171
|
-
"@react-native/virtualized-lists": "0.82.0-
|
|
165
|
+
"@react-native/assets-registry": "0.82.0-rc.0",
|
|
166
|
+
"@react-native/codegen": "0.82.0-rc.0",
|
|
167
|
+
"@react-native/community-cli-plugin": "0.82.0-rc.0",
|
|
168
|
+
"@react-native/gradle-plugin": "0.82.0-rc.0",
|
|
169
|
+
"@react-native/js-polyfills": "0.82.0-rc.0",
|
|
170
|
+
"@react-native/normalize-colors": "0.82.0-rc.0",
|
|
171
|
+
"@react-native/virtualized-lists": "0.82.0-rc.0",
|
|
172
172
|
"abort-controller": "^3.0.0",
|
|
173
173
|
"anser": "^1.4.9",
|
|
174
174
|
"ansi-regex": "^5.0.0",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
hermes-2025-09-01-RNv0.82.0-265ef62ff3eb7289d17e366664ac0da82303e101
|
|
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<<68532c89160ecdc1eced124322cfc1b5>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/Libraries/Lists/VirtualizedList.js
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
import VirtualizedLists from "@react-native/virtualized-lists";
|
|
14
14
|
type VirtualizedListType = typeof VirtualizedLists.VirtualizedList;
|
|
15
15
|
declare const VirtualizedListComponent: VirtualizedListType;
|
|
16
|
-
export type { ListRenderItemInfo, ListRenderItem,
|
|
16
|
+
export type { ListRenderItemInfo, ListRenderItem, Separators, VirtualizedListProps } from "@react-native/virtualized-lists";
|
|
17
17
|
declare const $$VirtualizedList: typeof VirtualizedListComponent;
|
|
18
18
|
declare type $$VirtualizedList = typeof $$VirtualizedList;
|
|
19
19
|
export default $$VirtualizedList;
|
|
@@ -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<<1b2686d01e2a15e1ee33d21283e05e5f>>
|
|
8
8
|
*
|
|
9
9
|
* This file was translated from Flow by scripts/js-api/build-types/index.js.
|
|
10
10
|
* Original file: packages/react-native/index.js.flow
|
|
@@ -65,7 +65,7 @@ export { default as TouchableWithoutFeedback } from "./Libraries/Components/Touc
|
|
|
65
65
|
export type { AccessibilityActionEvent, AccessibilityProps, AccessibilityRole, AccessibilityState, AccessibilityValue, Role } from "./Libraries/Components/View/ViewAccessibility";
|
|
66
66
|
export type { GestureResponderHandlers, TVViewPropsIOS, ViewProps, ViewPropsAndroid, ViewPropsIOS } from "./Libraries/Components/View/ViewPropTypes";
|
|
67
67
|
export { default as View } from "./Libraries/Components/View/View";
|
|
68
|
-
export type { ListRenderItemInfo, ListRenderItem,
|
|
68
|
+
export type { ListRenderItemInfo, ListRenderItem, Separators, VirtualizedListProps } from "./Libraries/Lists/VirtualizedList";
|
|
69
69
|
export { default as VirtualizedList } from "./Libraries/Lists/VirtualizedList";
|
|
70
70
|
export type { ScrollToLocationParamsType, SectionBase, VirtualizedSectionListProps } from "./Libraries/Lists/VirtualizedSectionList";
|
|
71
71
|
export { default as VirtualizedSectionList } from "./Libraries/Lists/VirtualizedSectionList";
|