@office-iss/react-native-win32 0.71.0-preview.2 → 0.71.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/.flowconfig +1 -0
- package/CHANGELOG.json +16 -1
- package/CHANGELOG.md +13 -5
- package/Libraries/Animated/Animated.d.ts +28 -0
- package/Libraries/Components/AccessibilityInfo/AccessibilityInfo.d.ts +29 -0
- package/Libraries/Components/ScrollView/ScrollView.d.ts +3 -3
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/Image/ImageSource.js +0 -2
- package/Libraries/Lists/FlatList.d.ts +1 -42
- package/Libraries/Lists/FlatList.js +1 -0
- package/Libraries/Lists/SectionList.d.ts +0 -42
- package/Libraries/Lists/VirtualizedList.d.ts +31 -1
- package/Libraries/Lists/VirtualizedList.js +1 -0
- package/Libraries/PermissionsAndroid/PermissionsAndroid.js +4 -2
- package/Libraries/PushNotificationIOS/PushNotificationIOS.d.ts +20 -0
- package/Libraries/ReactNative/AppRegistry.d.ts +51 -0
- package/Libraries/ReactNative/AppRegistry.js +3 -1
- package/Libraries/ReactNative/RootTag.d.ts +13 -0
- package/Libraries/StyleSheet/StyleSheet.d.ts +7 -3
- package/Libraries/StyleSheet/StyleSheetTypes.d.ts +0 -1
- package/Libraries/Utilities/createPerformanceLogger.d.ts +48 -0
- package/Libraries/Vibration/Vibration.d.ts +1 -1
- package/overrides.json +1 -1
- package/package.json +13 -13
- package/types/index.d.ts +1 -0
package/.flowconfig
CHANGED
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,22 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "Mon,
|
|
5
|
+
"date": "Mon, 23 Jan 2023 16:16:17 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.71.0",
|
|
7
|
+
"version": "0.71.0",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "34109996+chiaramooney@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "2f48e8f6c7d8e0c17332146a91d1a3d7b4530bd5",
|
|
14
|
+
"comment": "Promote 0.71 to latest"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 19 Dec 2022 16:14:52 GMT",
|
|
6
21
|
"tag": "@office-iss/react-native-win32_v0.71.0-preview.2",
|
|
7
22
|
"version": "0.71.0-preview.2",
|
|
8
23
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,25 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on Mon,
|
|
3
|
+
This log was last generated on Mon, 23 Jan 2023 16:16:17 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.71.0
|
|
7
|
+
## 0.71.0
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 23 Jan 2023 16:16:17 GMT
|
|
10
10
|
|
|
11
|
-
###
|
|
11
|
+
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Promote 0.71 to latest (34109996+chiaramooney@users.noreply.github.com)
|
|
14
14
|
|
|
15
|
+
## 0.71.0-preview.2
|
|
16
|
+
|
|
17
|
+
Mon, 19 Dec 2022 16:14:52 GMT
|
|
18
|
+
|
|
19
|
+
### Changes
|
|
20
|
+
|
|
21
|
+
- Remove unnecessary overrides to onFocus and onBlur in Pressable (sanajmi@microsoft.com)
|
|
22
|
+
|
|
15
23
|
## 0.71.0-preview.1
|
|
16
24
|
|
|
17
25
|
Mon, 12 Dec 2022 16:16:50 GMT
|
|
@@ -116,6 +116,17 @@ export namespace Animated {
|
|
|
116
116
|
|
|
117
117
|
type ValueListenerCallback = (state: {value: number}) => void;
|
|
118
118
|
|
|
119
|
+
type Animation = {
|
|
120
|
+
start(
|
|
121
|
+
fromValue: number,
|
|
122
|
+
onUpdate: (value: number) => void,
|
|
123
|
+
onEnd: EndCallback | null,
|
|
124
|
+
previousAnimation: Animation | null,
|
|
125
|
+
animatedValue: AnimatedValue,
|
|
126
|
+
): void;
|
|
127
|
+
stop(): void;
|
|
128
|
+
};
|
|
129
|
+
|
|
119
130
|
/**
|
|
120
131
|
* Standard value for driving animations. One `Animated.Value` can drive
|
|
121
132
|
* multiple properties in a synchronized fashion, but can only be driven by one
|
|
@@ -168,6 +179,13 @@ export namespace Animated {
|
|
|
168
179
|
*/
|
|
169
180
|
stopAnimation(callback?: (value: number) => void): void;
|
|
170
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Stops any animation and resets the value to its original.
|
|
184
|
+
*
|
|
185
|
+
* See https://reactnative.dev/docs/animatedvalue#resetanimation
|
|
186
|
+
*/
|
|
187
|
+
resetAnimation(callback?: (value: number) => void): void;
|
|
188
|
+
|
|
171
189
|
/**
|
|
172
190
|
* Interpolates the value before updating the property, e.g. mapping 0-1 to
|
|
173
191
|
* 0-10.
|
|
@@ -175,6 +193,14 @@ export namespace Animated {
|
|
|
175
193
|
interpolate<OutputT extends number | string>(
|
|
176
194
|
config: InterpolationConfigType,
|
|
177
195
|
): AnimatedInterpolation<OutputT>;
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Typically only used internally, but could be used by a custom Animation
|
|
199
|
+
* class.
|
|
200
|
+
*
|
|
201
|
+
* See https://reactnative.dev/docs/animatedvalue#animate
|
|
202
|
+
*/
|
|
203
|
+
animate(animation: Animation, callback?: EndCallback | null): void;
|
|
178
204
|
}
|
|
179
205
|
|
|
180
206
|
type ValueXYListenerCallback = (value: {x: number; y: number}) => void;
|
|
@@ -201,6 +227,8 @@ export namespace Animated {
|
|
|
201
227
|
|
|
202
228
|
extractOffset(): void;
|
|
203
229
|
|
|
230
|
+
resetAnimation(callback?: (value: {x: number; y: number}) => void): void;
|
|
231
|
+
|
|
204
232
|
stopAnimation(callback?: (value: {x: number; y: number}) => void): void;
|
|
205
233
|
|
|
206
234
|
addListener(callback: ValueXYListenerCallback): string;
|
|
@@ -69,6 +69,14 @@ export interface AccessibilityInfoStatic {
|
|
|
69
69
|
*/
|
|
70
70
|
isReduceMotionEnabled: () => Promise<boolean>;
|
|
71
71
|
|
|
72
|
+
/**
|
|
73
|
+
* Query whether reduce motion and prefer cross-fade transitions settings are currently enabled.
|
|
74
|
+
*
|
|
75
|
+
* Returns a promise which resolves to a boolean.
|
|
76
|
+
* The result is `true` when prefer cross-fade transitions is enabled and `false` otherwise.
|
|
77
|
+
*/
|
|
78
|
+
prefersCrossFadeTransitions(): Promise<boolean>;
|
|
79
|
+
|
|
72
80
|
/**
|
|
73
81
|
* Query whether reduce transparency is currently enabled.
|
|
74
82
|
*
|
|
@@ -81,6 +89,16 @@ export interface AccessibilityInfoStatic {
|
|
|
81
89
|
*/
|
|
82
90
|
isScreenReaderEnabled: () => Promise<boolean>;
|
|
83
91
|
|
|
92
|
+
/**
|
|
93
|
+
* Query whether Accessibility Service is currently enabled.
|
|
94
|
+
*
|
|
95
|
+
* Returns a promise which resolves to a boolean.
|
|
96
|
+
* The result is `true` when any service is enabled and `false` otherwise.
|
|
97
|
+
*
|
|
98
|
+
* @platform android
|
|
99
|
+
*/
|
|
100
|
+
isAccessibilityServiceEnabled(): Promise<boolean>;
|
|
101
|
+
|
|
84
102
|
/**
|
|
85
103
|
* Add an event handler. Supported events:
|
|
86
104
|
* - announcementFinished: iOS-only event. Fires when the screen reader has finished making an announcement.
|
|
@@ -111,6 +129,17 @@ export interface AccessibilityInfoStatic {
|
|
|
111
129
|
*/
|
|
112
130
|
announceForAccessibility: (announcement: string) => void;
|
|
113
131
|
|
|
132
|
+
/**
|
|
133
|
+
* Post a string to be announced by the screen reader.
|
|
134
|
+
* - `announcement`: The string announced by the screen reader.
|
|
135
|
+
* - `options`: An object that configures the reading options.
|
|
136
|
+
* - `queue`: The announcement will be queued behind existing announcements. iOS only.
|
|
137
|
+
*/
|
|
138
|
+
announceForAccessibilityWithOptions(
|
|
139
|
+
announcement: string,
|
|
140
|
+
options: {queue?: boolean},
|
|
141
|
+
): void;
|
|
142
|
+
|
|
114
143
|
/**
|
|
115
144
|
* Gets the timeout in millisecond that the user needs.
|
|
116
145
|
* This value is set in "Time to take action (Accessibility timeout)" of "Accessibility" settings.
|
|
@@ -829,8 +829,8 @@ export class ScrollView extends ScrollViewBase {
|
|
|
829
829
|
y?: number | undefined;
|
|
830
830
|
animated?: boolean | undefined;
|
|
831
831
|
},
|
|
832
|
-
|
|
833
|
-
|
|
832
|
+
deprecatedX?: number,
|
|
833
|
+
deprecatedAnimated?: boolean,
|
|
834
834
|
): void;
|
|
835
835
|
|
|
836
836
|
/**
|
|
@@ -841,7 +841,7 @@ export class ScrollView extends ScrollViewBase {
|
|
|
841
841
|
* The options object has an animated prop, that enables the scrolling animation or not.
|
|
842
842
|
* The animated prop defaults to true
|
|
843
843
|
*/
|
|
844
|
-
scrollToEnd(options?: {animated
|
|
844
|
+
scrollToEnd(options?: {animated?: boolean}): void;
|
|
845
845
|
|
|
846
846
|
/**
|
|
847
847
|
* Displays the scroll indicators momentarily.
|
|
@@ -19,48 +19,6 @@ import {ViewStyle} from '../StyleSheet/StyleSheetTypes';
|
|
|
19
19
|
import {View} from '../Components/View/View';
|
|
20
20
|
|
|
21
21
|
export interface FlatListProps<ItemT> extends VirtualizedListProps<ItemT> {
|
|
22
|
-
/**
|
|
23
|
-
* Rendered in between each item, but not at the top or bottom
|
|
24
|
-
*/
|
|
25
|
-
ItemSeparatorComponent?: React.ComponentType<any> | null | undefined;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* Rendered when the list is empty.
|
|
29
|
-
*/
|
|
30
|
-
ListEmptyComponent?:
|
|
31
|
-
| React.ComponentType<any>
|
|
32
|
-
| React.ReactElement
|
|
33
|
-
| null
|
|
34
|
-
| undefined;
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Rendered at the very end of the list.
|
|
38
|
-
*/
|
|
39
|
-
ListFooterComponent?:
|
|
40
|
-
| React.ComponentType<any>
|
|
41
|
-
| React.ReactElement
|
|
42
|
-
| null
|
|
43
|
-
| undefined;
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* Styling for internal View for ListFooterComponent
|
|
47
|
-
*/
|
|
48
|
-
ListFooterComponentStyle?: StyleProp<ViewStyle> | undefined;
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* Rendered at the very beginning of the list.
|
|
52
|
-
*/
|
|
53
|
-
ListHeaderComponent?:
|
|
54
|
-
| React.ComponentType<any>
|
|
55
|
-
| React.ReactElement
|
|
56
|
-
| null
|
|
57
|
-
| undefined;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Styling for internal View for ListHeaderComponent
|
|
61
|
-
*/
|
|
62
|
-
ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
|
|
63
|
-
|
|
64
22
|
/**
|
|
65
23
|
* Optional custom style for multi-item rows generated when numColumns > 1
|
|
66
24
|
*/
|
|
@@ -248,6 +206,7 @@ export class FlatList<ItemT = any> extends React.Component<
|
|
|
248
206
|
scrollToItem: (params: {
|
|
249
207
|
animated?: boolean | null | undefined;
|
|
250
208
|
item: ItemT;
|
|
209
|
+
viewOffset?: number | undefined;
|
|
251
210
|
viewPosition?: number | undefined;
|
|
252
211
|
}) => void;
|
|
253
212
|
|
|
@@ -61,48 +61,6 @@ export type SectionListRenderItem<ItemT, SectionT = DefaultSectionT> = (
|
|
|
61
61
|
|
|
62
62
|
export interface SectionListProps<ItemT, SectionT = DefaultSectionT>
|
|
63
63
|
extends VirtualizedListWithoutRenderItemProps<ItemT> {
|
|
64
|
-
/**
|
|
65
|
-
* Rendered in between adjacent Items within each section.
|
|
66
|
-
*/
|
|
67
|
-
ItemSeparatorComponent?: React.ComponentType<any> | null | undefined;
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* Rendered when the list is empty.
|
|
71
|
-
*/
|
|
72
|
-
ListEmptyComponent?:
|
|
73
|
-
| React.ComponentType<any>
|
|
74
|
-
| React.ReactElement
|
|
75
|
-
| null
|
|
76
|
-
| undefined;
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* Rendered at the very end of the list.
|
|
80
|
-
*/
|
|
81
|
-
ListFooterComponent?:
|
|
82
|
-
| React.ComponentType<any>
|
|
83
|
-
| React.ReactElement
|
|
84
|
-
| null
|
|
85
|
-
| undefined;
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Styling for internal View for ListFooterComponent
|
|
89
|
-
*/
|
|
90
|
-
ListFooterComponentStyle?: StyleProp<ViewStyle> | undefined | null;
|
|
91
|
-
|
|
92
|
-
/**
|
|
93
|
-
* Rendered at the very beginning of the list.
|
|
94
|
-
*/
|
|
95
|
-
ListHeaderComponent?:
|
|
96
|
-
| React.ComponentType<any>
|
|
97
|
-
| React.ReactElement
|
|
98
|
-
| null
|
|
99
|
-
| undefined;
|
|
100
|
-
|
|
101
|
-
/**
|
|
102
|
-
* Styling for internal View for ListHeaderComponent
|
|
103
|
-
*/
|
|
104
|
-
ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined | null;
|
|
105
|
-
|
|
106
64
|
/**
|
|
107
65
|
* Rendered in between each section.
|
|
108
66
|
*/
|
|
@@ -9,7 +9,14 @@
|
|
|
9
9
|
|
|
10
10
|
import type * as React from 'react';
|
|
11
11
|
import type {LayoutChangeEvent} from '../../types';
|
|
12
|
-
import
|
|
12
|
+
import {StyleProp} from '../StyleSheet/StyleSheet';
|
|
13
|
+
import {ViewStyle} from '../StyleSheet/StyleSheetTypes';
|
|
14
|
+
import type {
|
|
15
|
+
ScrollResponderMixin,
|
|
16
|
+
ScrollView,
|
|
17
|
+
ScrollViewProps,
|
|
18
|
+
} from '../Components/ScrollView/ScrollView';
|
|
19
|
+
import type {View} from '../Components/View/View';
|
|
13
20
|
|
|
14
21
|
export interface ViewToken {
|
|
15
22
|
item: any;
|
|
@@ -96,6 +103,7 @@ export class VirtualizedList<ItemT> extends React.Component<
|
|
|
96
103
|
scrollToItem: (params: {
|
|
97
104
|
animated?: boolean | undefined;
|
|
98
105
|
item: ItemT;
|
|
106
|
+
viewOffset?: number | undefined;
|
|
99
107
|
viewPosition?: number | undefined;
|
|
100
108
|
}) => void;
|
|
101
109
|
|
|
@@ -111,6 +119,13 @@ export class VirtualizedList<ItemT> extends React.Component<
|
|
|
111
119
|
}) => void;
|
|
112
120
|
|
|
113
121
|
recordInteraction: () => void;
|
|
122
|
+
|
|
123
|
+
getScrollRef: () =>
|
|
124
|
+
| React.ElementRef<typeof ScrollView>
|
|
125
|
+
| React.ElementRef<typeof View>
|
|
126
|
+
| null;
|
|
127
|
+
|
|
128
|
+
getScrollResponder: () => ScrollResponderMixin | null;
|
|
114
129
|
}
|
|
115
130
|
|
|
116
131
|
/**
|
|
@@ -124,6 +139,11 @@ export interface VirtualizedListProps<ItemT>
|
|
|
124
139
|
|
|
125
140
|
export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
126
141
|
extends ScrollViewProps {
|
|
142
|
+
/**
|
|
143
|
+
* Rendered in between each item, but not at the top or bottom
|
|
144
|
+
*/
|
|
145
|
+
ItemSeparatorComponent?: React.ComponentType<any> | null | undefined;
|
|
146
|
+
|
|
127
147
|
/**
|
|
128
148
|
* Rendered when the list is empty. Can be a React Component Class, a render function, or
|
|
129
149
|
* a rendered element.
|
|
@@ -144,6 +164,11 @@ export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
|
144
164
|
| null
|
|
145
165
|
| undefined;
|
|
146
166
|
|
|
167
|
+
/**
|
|
168
|
+
* Styling for internal View for ListFooterComponent
|
|
169
|
+
*/
|
|
170
|
+
ListFooterComponentStyle?: StyleProp<ViewStyle> | undefined;
|
|
171
|
+
|
|
147
172
|
/**
|
|
148
173
|
* Rendered at the top of all the items. Can be a React Component Class, a render function, or
|
|
149
174
|
* a rendered element.
|
|
@@ -154,6 +179,11 @@ export interface VirtualizedListWithoutRenderItemProps<ItemT>
|
|
|
154
179
|
| null
|
|
155
180
|
| undefined;
|
|
156
181
|
|
|
182
|
+
/**
|
|
183
|
+
* Styling for internal View for ListHeaderComponent
|
|
184
|
+
*/
|
|
185
|
+
ListHeaderComponentStyle?: StyleProp<ViewStyle> | undefined;
|
|
186
|
+
|
|
157
187
|
/**
|
|
158
188
|
* The default accessor functions assume this is an Array<{key: string}> but you can override
|
|
159
189
|
* getItem, getItemCount, and keyExtractor to handle any type of index-based data.
|
|
@@ -75,7 +75,8 @@ const PERMISSIONS = Object.freeze({
|
|
|
75
75
|
ANSWER_PHONE_CALLS: 'android.permission.ANSWER_PHONE_CALLS',
|
|
76
76
|
READ_PHONE_NUMBERS: 'android.permission.READ_PHONE_NUMBERS',
|
|
77
77
|
UWB_RANGING: 'android.permission.UWB_RANGING',
|
|
78
|
-
POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS',
|
|
78
|
+
POST_NOTIFICATION: 'android.permission.POST_NOTIFICATIONS', // Remove in 0.72
|
|
79
|
+
POST_NOTIFICATIONS: 'android.permission.POST_NOTIFICATIONS',
|
|
79
80
|
NEARBY_WIFI_DEVICES: 'android.permission.NEARBY_WIFI_DEVICES',
|
|
80
81
|
});
|
|
81
82
|
|
|
@@ -106,7 +107,8 @@ class PermissionsAndroid {
|
|
|
106
107
|
CAMERA: string,
|
|
107
108
|
GET_ACCOUNTS: string,
|
|
108
109
|
NEARBY_WIFI_DEVICES: string,
|
|
109
|
-
POST_NOTIFICATION: string,
|
|
110
|
+
POST_NOTIFICATION: string, // Remove in 0.72
|
|
111
|
+
POST_NOTIFICATIONS: string,
|
|
110
112
|
PROCESS_OUTGOING_CALLS: string,
|
|
111
113
|
READ_CALENDAR: string,
|
|
112
114
|
READ_CALL_LOG: string,
|
|
@@ -49,6 +49,11 @@ export interface PushNotification {
|
|
|
49
49
|
*/
|
|
50
50
|
getData(): Object;
|
|
51
51
|
|
|
52
|
+
/**
|
|
53
|
+
* Gets the thread ID on the notif
|
|
54
|
+
*/
|
|
55
|
+
getThreadId(): string;
|
|
56
|
+
|
|
52
57
|
/**
|
|
53
58
|
* iOS Only
|
|
54
59
|
* Signifies remote notification handling is complete
|
|
@@ -135,6 +140,21 @@ export interface PushNotificationIOSStatic {
|
|
|
135
140
|
*/
|
|
136
141
|
cancelAllLocalNotifications(): void;
|
|
137
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Remove all delivered notifications from Notification Center.
|
|
145
|
+
*/
|
|
146
|
+
removeAllDeliveredNotifications(): void;
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* Provides you with a list of the app’s notifications that are still displayed in Notification Center.
|
|
150
|
+
*/
|
|
151
|
+
getDeliveredNotifications(callback: (notifications: Object[]) => void): void;
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Removes the specified notifications from Notification Center
|
|
155
|
+
*/
|
|
156
|
+
removeDeliveredNotifications(identifiers: string[]): void;
|
|
157
|
+
|
|
138
158
|
/**
|
|
139
159
|
* Cancel local notifications.
|
|
140
160
|
* Optionally restricts the set of canceled notifications to those notifications whose userInfo fields match the corresponding fields in the userInfo argument.
|
|
@@ -8,9 +8,12 @@
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import type * as React from 'react';
|
|
11
|
+
import type {IPerformanceLogger} from '../Utilities/createPerformanceLogger';
|
|
11
12
|
|
|
12
13
|
type Task = (taskData: any) => Promise<void>;
|
|
13
14
|
type TaskProvider = () => Task;
|
|
15
|
+
type TaskCanceller = () => void;
|
|
16
|
+
type TaskCancelProvider = () => TaskCanceller;
|
|
14
17
|
|
|
15
18
|
export type ComponentProvider = () => React.ComponentType<any>;
|
|
16
19
|
|
|
@@ -22,6 +25,15 @@ export type AppConfig = {
|
|
|
22
25
|
run?: Runnable | undefined;
|
|
23
26
|
};
|
|
24
27
|
|
|
28
|
+
export type ComponentProviderInstrumentationHook = (
|
|
29
|
+
component: ComponentProvider,
|
|
30
|
+
scopedPerformanceLogger: IPerformanceLogger,
|
|
31
|
+
) => React.ComponentType<any>;
|
|
32
|
+
|
|
33
|
+
export type WrapperComponentProvider = (
|
|
34
|
+
appParameters: any,
|
|
35
|
+
) => React.ComponentType<any>;
|
|
36
|
+
|
|
25
37
|
/**
|
|
26
38
|
* `AppRegistry` is the JS entry point to running all React Native apps. App
|
|
27
39
|
* root components should register themselves with
|
|
@@ -38,17 +50,31 @@ export type AppConfig = {
|
|
|
38
50
|
* `require`d.
|
|
39
51
|
*/
|
|
40
52
|
export namespace AppRegistry {
|
|
53
|
+
export function setWrapperComponentProvider(
|
|
54
|
+
provider: WrapperComponentProvider,
|
|
55
|
+
): void;
|
|
56
|
+
|
|
41
57
|
export function registerConfig(config: AppConfig[]): void;
|
|
42
58
|
|
|
43
59
|
export function registerComponent(
|
|
44
60
|
appKey: string,
|
|
45
61
|
getComponentFunc: ComponentProvider,
|
|
62
|
+
section?: boolean,
|
|
46
63
|
): string;
|
|
47
64
|
|
|
48
65
|
export function registerRunnable(appKey: string, func: Runnable): string;
|
|
49
66
|
|
|
67
|
+
export function registerSection(
|
|
68
|
+
appKey: string,
|
|
69
|
+
component: ComponentProvider,
|
|
70
|
+
): void;
|
|
71
|
+
|
|
50
72
|
export function getAppKeys(): string[];
|
|
51
73
|
|
|
74
|
+
export function getSectionKeys(): string[];
|
|
75
|
+
|
|
76
|
+
export function getSections(): Record<string, Runnable>;
|
|
77
|
+
|
|
52
78
|
export function unmountApplicationComponentAtRootTag(rootTag: number): void;
|
|
53
79
|
|
|
54
80
|
export function runApplication(appKey: string, appParameters: any): void;
|
|
@@ -65,4 +91,29 @@ export namespace AppRegistry {
|
|
|
65
91
|
): void;
|
|
66
92
|
|
|
67
93
|
export function getRunnable(appKey: string): Runnable | undefined;
|
|
94
|
+
|
|
95
|
+
export function getRegistry(): {sections: string[]; runnables: Runnable[]};
|
|
96
|
+
|
|
97
|
+
export function setComponentProviderInstrumentationHook(
|
|
98
|
+
hook: ComponentProviderInstrumentationHook,
|
|
99
|
+
): void;
|
|
100
|
+
|
|
101
|
+
export function registerHeadlessTask(
|
|
102
|
+
taskKey: string,
|
|
103
|
+
taskProvider: TaskProvider,
|
|
104
|
+
): void;
|
|
105
|
+
|
|
106
|
+
export function registerCancellableHeadlessTask(
|
|
107
|
+
taskKey: string,
|
|
108
|
+
taskProvider: TaskProvider,
|
|
109
|
+
taskCancelProvider: TaskCancelProvider,
|
|
110
|
+
): void;
|
|
111
|
+
|
|
112
|
+
export function startHeadlessTask(
|
|
113
|
+
taskId: number,
|
|
114
|
+
taskKey: string,
|
|
115
|
+
data: any,
|
|
116
|
+
): void;
|
|
117
|
+
|
|
118
|
+
export function cancelHeadlessTask(taskId: number, taskKey: string): void;
|
|
68
119
|
}
|
|
@@ -51,7 +51,9 @@ export type Registry = {
|
|
|
51
51
|
runnables: Runnables,
|
|
52
52
|
...
|
|
53
53
|
};
|
|
54
|
-
export type WrapperComponentProvider =
|
|
54
|
+
export type WrapperComponentProvider = (
|
|
55
|
+
appParameters: any,
|
|
56
|
+
) => React$ComponentType<any>;
|
|
55
57
|
|
|
56
58
|
const runnables: Runnables = {};
|
|
57
59
|
let runCount = 1;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
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
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type * as React from 'react';
|
|
11
|
+
|
|
12
|
+
export type RootTag = number;
|
|
13
|
+
export const RootTagContext: React.Context<RootTag>;
|
|
@@ -87,9 +87,13 @@ export namespace StyleSheet {
|
|
|
87
87
|
* an array, saving allocations and maintaining reference equality for
|
|
88
88
|
* PureComponent checks.
|
|
89
89
|
*/
|
|
90
|
-
export function compose<
|
|
91
|
-
|
|
92
|
-
|
|
90
|
+
export function compose<
|
|
91
|
+
T extends ViewStyle | TextStyle | ImageStyle,
|
|
92
|
+
U extends T,
|
|
93
|
+
V extends T,
|
|
94
|
+
>(
|
|
95
|
+
style1: StyleProp<U> | Array<StyleProp<U>>,
|
|
96
|
+
style2: StyleProp<V> | Array<StyleProp<V>>,
|
|
93
97
|
): StyleProp<T>;
|
|
94
98
|
|
|
95
99
|
/**
|
|
@@ -236,7 +236,6 @@ export interface ViewStyle extends FlexStyle, ShadowStyleIOS, TransformsStyle {
|
|
|
236
236
|
borderTopWidth?: number | undefined;
|
|
237
237
|
borderWidth?: number | undefined;
|
|
238
238
|
opacity?: number | undefined;
|
|
239
|
-
testID?: string | undefined;
|
|
240
239
|
/**
|
|
241
240
|
* Sets the elevation of a view, using Android's underlying
|
|
242
241
|
* [elevation API](https://developer.android.com/training/material/shadows-clipping.html#Elevation).
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
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
|
+
* @format
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
export type Timespan = {
|
|
11
|
+
startTime: number;
|
|
12
|
+
endTime?: number;
|
|
13
|
+
totalTime?: number;
|
|
14
|
+
startExtras?: Extras;
|
|
15
|
+
endExtras?: Extras;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// Extra values should be serializable primitives
|
|
19
|
+
export type ExtraValue = number | string | boolean;
|
|
20
|
+
|
|
21
|
+
export type Extras = {[key: string]: ExtraValue};
|
|
22
|
+
|
|
23
|
+
export interface IPerformanceLogger {
|
|
24
|
+
addTimespan(
|
|
25
|
+
key: string,
|
|
26
|
+
startTime: number,
|
|
27
|
+
endTime: number,
|
|
28
|
+
startExtras?: Extras,
|
|
29
|
+
endExtras?: Extras,
|
|
30
|
+
): void;
|
|
31
|
+
append(logger: IPerformanceLogger): void;
|
|
32
|
+
clear(): void;
|
|
33
|
+
clearCompleted(): void;
|
|
34
|
+
close(): void;
|
|
35
|
+
currentTimestamp(): number;
|
|
36
|
+
getExtras(): {[key: string]: ExtraValue | null};
|
|
37
|
+
getPoints(): {[key: string]: number | null};
|
|
38
|
+
getPointExtras(): {[key: string]: Extras | null};
|
|
39
|
+
getTimespans(): {[key: string]: Timespan | null};
|
|
40
|
+
hasTimespan(key: string): boolean;
|
|
41
|
+
isClosed(): boolean;
|
|
42
|
+
logEverything(): void;
|
|
43
|
+
markPoint(key: string, timestamp?: number, extras?: Extras): void;
|
|
44
|
+
removeExtra(key: string): ExtraValue | null;
|
|
45
|
+
setExtra(key: string, value: ExtraValue): void;
|
|
46
|
+
startTimespan(key: string, timestamp?: number, extras?: Extras): void;
|
|
47
|
+
stopTimespan(key: string, timestamp?: number, extras?: Extras): void;
|
|
48
|
+
}
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
* V(fixed) --wait(1s)--> V(fixed) --wait(2s)--> V(fixed) --wait(3s)--> V(fixed)
|
|
32
32
|
*/
|
|
33
33
|
export interface VibrationStatic {
|
|
34
|
-
vibrate(pattern?: number | number[]
|
|
34
|
+
vibrate(pattern?: number | number[], repeat?: boolean): void;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
37
|
* Stop vibration
|
package/overrides.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.71.0
|
|
3
|
+
"version": "0.71.0",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./index.win32.js",
|
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@babel/runtime": "^7.0.0",
|
|
24
24
|
"@jest/create-cache-key-function": "^29.2.1",
|
|
25
|
-
"@react-native-community/cli": "10.0.0
|
|
26
|
-
"@react-native-community/cli-platform-android": "10.0.0
|
|
27
|
-
"@react-native-community/cli-platform-ios": "10.0.0
|
|
25
|
+
"@react-native-community/cli": "10.0.0",
|
|
26
|
+
"@react-native-community/cli-platform-android": "10.0.0",
|
|
27
|
+
"@react-native-community/cli-platform-ios": "10.0.0",
|
|
28
28
|
"@react-native/assets": "1.0.0",
|
|
29
29
|
"@react-native/normalize-color": "2.1.0",
|
|
30
30
|
"@react-native/polyfills": "2.0.0",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"anser": "^1.4.9",
|
|
33
33
|
"art": "^0.10.0",
|
|
34
34
|
"base64-js": "^1.1.2",
|
|
35
|
-
"deprecated-react-native-prop-types": "^
|
|
35
|
+
"deprecated-react-native-prop-types": "^3.0.1",
|
|
36
36
|
"event-target-shim": "^5.0.1",
|
|
37
37
|
"invariant": "^2.2.4",
|
|
38
38
|
"jest-environment-node": "^29.2.1",
|
|
39
39
|
"jsc-android": "^250230.2.1",
|
|
40
40
|
"memoize-one": "^5.0.0",
|
|
41
|
-
"metro-react-native-babel-transformer": "0.73.
|
|
42
|
-
"metro-runtime": "0.73.
|
|
43
|
-
"metro-source-map": "0.73.
|
|
41
|
+
"metro-react-native-babel-transformer": "0.73.5",
|
|
42
|
+
"metro-runtime": "0.73.5",
|
|
43
|
+
"metro-source-map": "0.73.5",
|
|
44
44
|
"mkdirp": "^0.5.1",
|
|
45
45
|
"nullthrows": "^1.1.1",
|
|
46
46
|
"pretty-format": "^26.5.2",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"react-clone-referenced-element": "^1.0.1",
|
|
49
49
|
"react-devtools-core": "^4.26.1",
|
|
50
50
|
"react-native-codegen": "^0.71.3",
|
|
51
|
-
"react-native-gradle-plugin": "^0.71.
|
|
51
|
+
"react-native-gradle-plugin": "^0.71.12",
|
|
52
52
|
"react-refresh": "^0.4.0",
|
|
53
53
|
"react-shallow-renderer": "^16.15.0",
|
|
54
54
|
"regenerator-runtime": "^0.13.2",
|
|
@@ -76,20 +76,20 @@
|
|
|
76
76
|
"just-scripts": "^1.3.3",
|
|
77
77
|
"prettier": "^2.4.1",
|
|
78
78
|
"react": "18.2.0",
|
|
79
|
-
"react-native": "0.71.0
|
|
79
|
+
"react-native": "0.71.0",
|
|
80
80
|
"react-native-platform-override": "^1.8.3",
|
|
81
81
|
"typescript": "^4.4.4"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"react": "18.2.0",
|
|
85
|
-
"react-native": "0.71.0
|
|
85
|
+
"react-native": "0.71.0"
|
|
86
86
|
},
|
|
87
87
|
"beachball": {
|
|
88
|
-
"defaultNpmTag": "
|
|
88
|
+
"defaultNpmTag": "latest",
|
|
89
89
|
"disallowedChangeTypes": [
|
|
90
90
|
"major",
|
|
91
91
|
"minor",
|
|
92
|
-
"
|
|
92
|
+
"prerelease"
|
|
93
93
|
]
|
|
94
94
|
},
|
|
95
95
|
"promoteRelease": true,
|
package/types/index.d.ts
CHANGED
|
@@ -127,6 +127,7 @@ export * from '../Libraries/PushNotificationIOS/PushNotificationIOS';
|
|
|
127
127
|
export * from '../Libraries/ReactNative/AppRegistry';
|
|
128
128
|
export * from '../Libraries/ReactNative/I18nManager';
|
|
129
129
|
export * from '../Libraries/ReactNative/RendererProxy';
|
|
130
|
+
export * from '../Libraries/ReactNative/RootTag';
|
|
130
131
|
export * from '../Libraries/ReactNative/UIManager';
|
|
131
132
|
export * from '../Libraries/ReactNative/requireNativeComponent';
|
|
132
133
|
export * from '../Libraries/Settings/Settings';
|