@office-iss/react-native-win32 0.68.5 → 0.68.7
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/CHANGELOG.json +31 -1
- package/CHANGELOG.md +20 -4
- package/Libraries/Network/RCTNetworking.win32.js +87 -63
- package/package.json +3 -3
- package/rntypes/index.d.ts +90 -38
- package/src/rntypes/index.d.ts +90 -38
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,37 @@
|
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Mon, 24 Oct 2022 15:07:53 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.68.7",
|
|
7
|
+
"version": "0.68.7",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "30809111+acoates-ms@users.noreply.github.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "aa91e7bf33f272ec2a181796027fdc842b1c584f",
|
|
14
|
+
"comment": "Bump RN types to 0.68"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 26 Sep 2022 15:08:21 GMT",
|
|
21
|
+
"tag": "@office-iss/react-native-win32_v0.68.6",
|
|
22
|
+
"version": "0.68.6",
|
|
23
|
+
"comments": {
|
|
24
|
+
"patch": [
|
|
25
|
+
{
|
|
26
|
+
"author": "julio.rocha@microsoft.com",
|
|
27
|
+
"package": "@office-iss/react-native-win32",
|
|
28
|
+
"commit": "ed87b1767b8a150e225eb9ef9e2d1a75fbd15830",
|
|
29
|
+
"comment": "Consolidate JavaScript HTTP module specifications (#10628)"
|
|
30
|
+
}
|
|
31
|
+
]
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"date": "Sat, 17 Sep 2022 02:23:36 GMT",
|
|
6
36
|
"tag": "@office-iss/react-native-win32_v0.68.5",
|
|
7
37
|
"version": "0.68.5",
|
|
8
38
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,33 @@
|
|
|
1
1
|
# Change Log - @office-iss/react-native-win32
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 24 Oct 2022 15:07:53 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.68.
|
|
7
|
+
## 0.68.7
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Mon, 24 Oct 2022 15:07:53 GMT
|
|
10
10
|
|
|
11
11
|
### Patches
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Bump RN types to 0.68 (30809111+acoates-ms@users.noreply.github.com)
|
|
14
14
|
|
|
15
|
+
## 0.68.6
|
|
16
|
+
|
|
17
|
+
Mon, 26 Sep 2022 15:08:21 GMT
|
|
18
|
+
|
|
19
|
+
### Patches
|
|
20
|
+
|
|
21
|
+
- Consolidate JavaScript HTTP module specifications (#10628) (julio.rocha@microsoft.com)
|
|
22
|
+
|
|
23
|
+
## 0.68.5
|
|
24
|
+
|
|
25
|
+
Sat, 17 Sep 2022 02:23:36 GMT
|
|
26
|
+
|
|
27
|
+
### Patches
|
|
28
|
+
|
|
29
|
+
- Add Dimensions.win32 implementation to support text scale factor (patboyd@microsoft.com)
|
|
30
|
+
|
|
15
31
|
## 0.68.4
|
|
16
32
|
|
|
17
33
|
Wed, 14 Sep 2022 18:19:21 GMT
|
|
@@ -1,93 +1,117 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
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.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
6
4
|
*
|
|
5
|
+
* @flow strict-local
|
|
7
6
|
* @format
|
|
8
|
-
* @flow
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
|
|
12
|
-
// It will add the necessary requestId, so that you don't have to generate it yourself.
|
|
13
|
-
import NativeEventEmitter from '../EventEmitter/NativeEventEmitter';
|
|
14
|
-
import convertRequestBody from './convertRequestBody';
|
|
15
|
-
|
|
16
|
-
// [Win32
|
|
17
|
-
import type {RequestBody} from './convertRequestBody';
|
|
18
|
-
const NativeModules = require('../BatchedBridge/NativeModules');
|
|
19
|
-
const RCTNetworkingNative = NativeModules.Networking;
|
|
20
|
-
// Win32]
|
|
9
|
+
'use strict';
|
|
21
10
|
|
|
22
|
-
|
|
11
|
+
import RCTDeviceEventEmitter from '../EventEmitter/RCTDeviceEventEmitter';
|
|
12
|
+
const RCTNetworkingNative =
|
|
13
|
+
require('../BatchedBridge/NativeModules').Networking; // [Windows]
|
|
14
|
+
import {type NativeResponseType} from './XMLHttpRequest';
|
|
15
|
+
import convertRequestBody, {type RequestBody} from './convertRequestBody';
|
|
16
|
+
import {type EventSubscription} from '../vendor/emitter/EventEmitter';
|
|
23
17
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
18
|
+
type RCTNetworkingEventDefinitions = $ReadOnly<{
|
|
19
|
+
didSendNetworkData: [
|
|
20
|
+
[
|
|
21
|
+
number, // requestId
|
|
22
|
+
number, // progress
|
|
23
|
+
number, // total
|
|
24
|
+
],
|
|
25
|
+
],
|
|
26
|
+
didReceiveNetworkResponse: [
|
|
27
|
+
[
|
|
28
|
+
number, // requestId
|
|
29
|
+
number, // status
|
|
30
|
+
?{[string]: string}, // responseHeaders
|
|
31
|
+
?string, // responseURL
|
|
32
|
+
],
|
|
33
|
+
],
|
|
34
|
+
didReceiveNetworkData: [
|
|
35
|
+
[
|
|
36
|
+
number, // requestId
|
|
37
|
+
string, // response
|
|
38
|
+
],
|
|
39
|
+
],
|
|
40
|
+
didReceiveNetworkIncrementalData: [
|
|
41
|
+
[
|
|
42
|
+
number, // requestId
|
|
43
|
+
string, // responseText
|
|
44
|
+
number, // progress
|
|
45
|
+
number, // total
|
|
46
|
+
],
|
|
47
|
+
],
|
|
48
|
+
didReceiveNetworkDataProgress: [
|
|
49
|
+
[
|
|
50
|
+
number, // requestId
|
|
51
|
+
number, // loaded
|
|
52
|
+
number, // total
|
|
53
|
+
],
|
|
54
|
+
],
|
|
55
|
+
didCompleteNetworkResponse: [
|
|
56
|
+
[
|
|
57
|
+
number, // requestId
|
|
58
|
+
string, // error
|
|
59
|
+
boolean, // timeOutError
|
|
60
|
+
],
|
|
61
|
+
],
|
|
62
|
+
}>;
|
|
33
63
|
|
|
34
64
|
let _requestId = 1;
|
|
35
65
|
function generateRequestId(): number {
|
|
36
66
|
return _requestId++;
|
|
37
67
|
}
|
|
38
68
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
69
|
+
const RCTNetworking = {
|
|
70
|
+
addListener<K: $Keys<RCTNetworkingEventDefinitions>>(
|
|
71
|
+
eventType: K,
|
|
72
|
+
listener: (...$ElementType<RCTNetworkingEventDefinitions, K>) => mixed,
|
|
73
|
+
context?: mixed,
|
|
74
|
+
): EventSubscription {
|
|
75
|
+
return RCTDeviceEventEmitter.addListener(eventType, listener, context);
|
|
76
|
+
},
|
|
48
77
|
|
|
49
78
|
sendRequest(
|
|
50
79
|
method: string,
|
|
51
80
|
trackingName: string,
|
|
52
81
|
url: string,
|
|
53
|
-
headers:
|
|
82
|
+
headers: {...},
|
|
54
83
|
data: RequestBody,
|
|
55
|
-
responseType:
|
|
84
|
+
responseType: NativeResponseType,
|
|
56
85
|
incrementalUpdates: boolean,
|
|
57
86
|
timeout: number,
|
|
58
|
-
callback: (requestId: number) =>
|
|
87
|
+
callback: (requestId: number) => void,
|
|
59
88
|
withCredentials: boolean,
|
|
60
89
|
) {
|
|
61
|
-
const body = convertRequestBody(data);
|
|
62
|
-
if (body && body.formData) {
|
|
63
|
-
body.formData = body.formData.map((part) => ({
|
|
64
|
-
...part,
|
|
65
|
-
headers: convertHeadersMapToArray(part.headers),
|
|
66
|
-
}));
|
|
67
|
-
}
|
|
68
90
|
const requestId = generateRequestId();
|
|
91
|
+
const body = convertRequestBody(data);
|
|
69
92
|
RCTNetworkingNative.sendRequest(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
93
|
+
{
|
|
94
|
+
method,
|
|
95
|
+
url,
|
|
96
|
+
requestId,
|
|
97
|
+
data: {...body, trackingName},
|
|
98
|
+
headers,
|
|
99
|
+
responseType,
|
|
100
|
+
incrementalUpdates,
|
|
101
|
+
timeout,
|
|
102
|
+
withCredentials,
|
|
103
|
+
},
|
|
104
|
+
callback,
|
|
80
105
|
);
|
|
81
|
-
|
|
82
|
-
}
|
|
106
|
+
},
|
|
83
107
|
|
|
84
108
|
abortRequest(requestId: number) {
|
|
85
|
-
RCTNetworkingNative.abortRequest(requestId);
|
|
86
|
-
}
|
|
109
|
+
RCTNetworkingNative.abortRequest(requestId);
|
|
110
|
+
},
|
|
87
111
|
|
|
88
|
-
clearCookies(callback: (result: boolean) =>
|
|
89
|
-
RCTNetworkingNative.clearCookies(callback);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
112
|
+
clearCookies(callback: (result: boolean) => void) {
|
|
113
|
+
RCTNetworkingNative.clearCookies(callback);
|
|
114
|
+
},
|
|
115
|
+
};
|
|
92
116
|
|
|
93
|
-
module.exports =
|
|
117
|
+
module.exports = RCTNetworking;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@office-iss/react-native-win32",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.7",
|
|
4
4
|
"description": "Implementation of react native on top of Office's Win32 platform.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./index.win32.js",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"@rnx-kit/jest-preset": "^0.1.0",
|
|
64
64
|
"@types/node": "^14.14.22",
|
|
65
65
|
"@types/prop-types": "15.7.1",
|
|
66
|
-
"@types/react": "^17.0.
|
|
67
|
-
"@types/react-native": "^0.
|
|
66
|
+
"@types/react": "^17.0.39",
|
|
67
|
+
"@types/react-native": "^0.68.0",
|
|
68
68
|
"babel-eslint": "^10.1.0",
|
|
69
69
|
"eslint": "^7.32.0",
|
|
70
70
|
"flow-bin": "^0.170.0",
|
package/rntypes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for react-native 0.
|
|
1
|
+
// Type definitions for react-native 0.68
|
|
2
2
|
// Project: https://github.com/facebook/react-native
|
|
3
3
|
// Definitions by: Eloy Durán <https://github.com/alloy>
|
|
4
4
|
// HuHuanming <https://github.com/huhuanming>
|
|
@@ -25,22 +25,21 @@
|
|
|
25
25
|
// Xianming Zhong <https://github.com/chinesedfan>
|
|
26
26
|
// Valentyn Tolochko <https://github.com/vtolochk>
|
|
27
27
|
// Sergey Sychev <https://github.com/SychevSP>
|
|
28
|
-
// Kelvin Chu <https://github.com/RageBill>
|
|
29
28
|
// Daiki Ihara <https://github.com/sasurau4>
|
|
30
29
|
// Abe Dolinger <https://github.com/256hz>
|
|
31
30
|
// Dominique Richard <https://github.com/doumart>
|
|
32
31
|
// Mohamed Shaban <https://github.com/drmas>
|
|
33
32
|
// Jérémy Barbet <https://github.com/jeremybarbet>
|
|
34
|
-
// Christian Ost <https://github.com/ca057>
|
|
35
33
|
// David Sheldrick <https://github.com/ds300>
|
|
36
34
|
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
|
37
35
|
// ConnectDotz <https://github.com/connectdotz>
|
|
38
|
-
// Marcel Lasaj <https://github.com/TheWirv>
|
|
39
36
|
// Alexey Molchan <https://github.com/alexeymolchan>
|
|
40
37
|
// Alex Brazier <https://github.com/alexbrazier>
|
|
41
38
|
// Arafat Zahan <https://github.com/kuasha420>
|
|
42
39
|
// Pedro Hernández <https://github.com/phvillegas>
|
|
43
40
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
41
|
+
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
|
42
|
+
// Saad Najmi <https://github.com/saadnajmi>
|
|
44
43
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
44
|
// TypeScript Version: 3.0
|
|
46
45
|
|
|
@@ -371,7 +370,7 @@ type TaskProvider = () => Task;
|
|
|
371
370
|
type NodeHandle = number;
|
|
372
371
|
|
|
373
372
|
// Similar to React.SyntheticEvent except for nativeEvent
|
|
374
|
-
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T,
|
|
373
|
+
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T, React.ElementRef<HostComponent<unknown>>, React.ElementRef<HostComponent<unknown>>> {}
|
|
375
374
|
|
|
376
375
|
export interface NativeTouchEvent {
|
|
377
376
|
/**
|
|
@@ -407,7 +406,7 @@ export interface NativeTouchEvent {
|
|
|
407
406
|
/**
|
|
408
407
|
* The node id of the element receiving the touch event
|
|
409
408
|
*/
|
|
410
|
-
target:
|
|
409
|
+
target: NodeHandle;
|
|
411
410
|
|
|
412
411
|
/**
|
|
413
412
|
* A time identifier for the touch, useful for velocity calculation
|
|
@@ -426,8 +425,18 @@ export interface NativeTouchEvent {
|
|
|
426
425
|
force?: number | undefined;
|
|
427
426
|
}
|
|
428
427
|
|
|
428
|
+
export interface NativeMouseEvent {
|
|
429
|
+
clientX: number,
|
|
430
|
+
clientY: number,
|
|
431
|
+
pageX: number,
|
|
432
|
+
pageY: number,
|
|
433
|
+
timestamp: number,
|
|
434
|
+
}
|
|
435
|
+
|
|
429
436
|
export interface GestureResponderEvent extends NativeSyntheticEvent<NativeTouchEvent> {}
|
|
430
437
|
|
|
438
|
+
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {}
|
|
439
|
+
|
|
431
440
|
// See https://reactnative.dev/docs/scrollview#contentoffset
|
|
432
441
|
export interface PointPropType {
|
|
433
442
|
x: number;
|
|
@@ -453,6 +462,16 @@ export interface PressableAndroidRippleConfig {
|
|
|
453
462
|
}
|
|
454
463
|
|
|
455
464
|
export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'children' | 'style' | 'hitSlop'> {
|
|
465
|
+
/**
|
|
466
|
+
* Called when the hover is activated to provide visual feedback.
|
|
467
|
+
*/
|
|
468
|
+
onHoverIn?: null | ((event: MouseEvent) => void) | undefined,
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Called when the hover is deactivated to undo visual feedback.
|
|
472
|
+
*/
|
|
473
|
+
onHoverOut?: null | ((event: MouseEvent) => void) | undefined,
|
|
474
|
+
|
|
456
475
|
/**
|
|
457
476
|
* Called when a single tap gesture is detected.
|
|
458
477
|
*/
|
|
@@ -475,13 +494,13 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
475
494
|
|
|
476
495
|
/**
|
|
477
496
|
* Called after the element loses focus.
|
|
478
|
-
* @platform windows
|
|
497
|
+
* @platform macos windows
|
|
479
498
|
*/
|
|
480
499
|
onBlur?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
481
500
|
|
|
482
501
|
/**
|
|
483
502
|
* Called after the element is focused.
|
|
484
|
-
* @platform windows
|
|
503
|
+
* @platform macos windows
|
|
485
504
|
*/
|
|
486
505
|
onFocus?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
487
506
|
|
|
@@ -497,6 +516,16 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
497
516
|
*/
|
|
498
517
|
cancelable?: null | boolean | undefined;
|
|
499
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Duration to wait after hover in before calling `onHoverIn`.
|
|
521
|
+
*/
|
|
522
|
+
delayHoverIn?: number | null | undefined;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Duration to wait after hover out before calling `onHoverOut`.
|
|
526
|
+
*/
|
|
527
|
+
delayHoverOut?: number | null | undefined;
|
|
528
|
+
|
|
500
529
|
/**
|
|
501
530
|
* Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
|
|
502
531
|
*/
|
|
@@ -538,6 +567,11 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
538
567
|
* the component is currently pressed and returns view styles.
|
|
539
568
|
*/
|
|
540
569
|
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Duration (in milliseconds) to wait after press down before calling onPressIn.
|
|
573
|
+
*/
|
|
574
|
+
unstable_pressDelay?: number
|
|
541
575
|
}
|
|
542
576
|
|
|
543
577
|
// TODO use React.AbstractComponent when available
|
|
@@ -880,7 +914,7 @@ export interface LayoutRectangle {
|
|
|
880
914
|
}
|
|
881
915
|
|
|
882
916
|
// @see TextProps.onLayout
|
|
883
|
-
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle }>;
|
|
917
|
+
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle, target?: NodeHandle | null }>;
|
|
884
918
|
|
|
885
919
|
interface TextLayoutLine {
|
|
886
920
|
ascender: number;
|
|
@@ -959,6 +993,11 @@ export interface TextPropsIOS {
|
|
|
959
993
|
}
|
|
960
994
|
|
|
961
995
|
export interface TextPropsAndroid {
|
|
996
|
+
/**
|
|
997
|
+
* Specifies the disabled state of the text view for testing purposes.
|
|
998
|
+
*/
|
|
999
|
+
disabled?: boolean | undefined;
|
|
1000
|
+
|
|
962
1001
|
/**
|
|
963
1002
|
* Lets the user select text, to use the native copy and paste functionality.
|
|
964
1003
|
*/
|
|
@@ -988,8 +1027,7 @@ export interface TextPropsAndroid {
|
|
|
988
1027
|
| 'normal'
|
|
989
1028
|
| 'none'
|
|
990
1029
|
| 'full'
|
|
991
|
-
|
|
|
992
|
-
| 'balanced' | undefined;
|
|
1030
|
+
| undefined;
|
|
993
1031
|
}
|
|
994
1032
|
|
|
995
1033
|
// https://reactnative.dev/docs/text#props
|
|
@@ -3220,12 +3258,6 @@ export interface RefreshControlPropsAndroid extends ViewProps {
|
|
|
3220
3258
|
* Size of the refresh indicator, see RefreshControl.SIZE.
|
|
3221
3259
|
*/
|
|
3222
3260
|
size?: number | undefined;
|
|
3223
|
-
|
|
3224
|
-
/**
|
|
3225
|
-
* Progress view top offset
|
|
3226
|
-
* @platform android
|
|
3227
|
-
*/
|
|
3228
|
-
progressViewOffset?: number | undefined;
|
|
3229
3261
|
}
|
|
3230
3262
|
|
|
3231
3263
|
export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshControlPropsAndroid {
|
|
@@ -3238,6 +3270,11 @@ export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshCont
|
|
|
3238
3270
|
* Whether the view should be indicating an active refresh.
|
|
3239
3271
|
*/
|
|
3240
3272
|
refreshing: boolean;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Progress view top offset
|
|
3276
|
+
*/
|
|
3277
|
+
progressViewOffset?: number | undefined;
|
|
3241
3278
|
}
|
|
3242
3279
|
|
|
3243
3280
|
/**
|
|
@@ -3648,18 +3685,6 @@ interface ImagePropsAndroid {
|
|
|
3648
3685
|
* @platform android
|
|
3649
3686
|
*/
|
|
3650
3687
|
fadeDuration?: number | undefined;
|
|
3651
|
-
|
|
3652
|
-
/**
|
|
3653
|
-
* Required if loading images via 'uri' from drawable folder on Android.
|
|
3654
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3655
|
-
*/
|
|
3656
|
-
width?: number | undefined;
|
|
3657
|
-
|
|
3658
|
-
/**
|
|
3659
|
-
* Required if loading images via 'uri' from drawable folder on Android
|
|
3660
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3661
|
-
*/
|
|
3662
|
-
height?: number | undefined;
|
|
3663
3688
|
}
|
|
3664
3689
|
|
|
3665
3690
|
/**
|
|
@@ -3844,6 +3869,7 @@ export class Image extends ImageBase {
|
|
|
3844
3869
|
}
|
|
3845
3870
|
|
|
3846
3871
|
export interface ImageBackgroundProps extends ImagePropsBase {
|
|
3872
|
+
children?: React.ReactNode;
|
|
3847
3873
|
imageStyle?: StyleProp<ImageStyle> | undefined;
|
|
3848
3874
|
style?: StyleProp<ViewStyle> | undefined;
|
|
3849
3875
|
imageRef?(image: Image): void;
|
|
@@ -4834,10 +4860,11 @@ export interface ModalBaseProps {
|
|
|
4834
4860
|
*/
|
|
4835
4861
|
visible?: boolean | undefined;
|
|
4836
4862
|
/**
|
|
4837
|
-
* The `onRequestClose`
|
|
4838
|
-
*
|
|
4863
|
+
* The `onRequestClose` callback is called when the user taps the hardware back button on Android or the menu button on Apple TV.
|
|
4864
|
+
*
|
|
4865
|
+
* This is required on Apple TV and Android.
|
|
4839
4866
|
*/
|
|
4840
|
-
onRequestClose?: (() => void) | undefined;
|
|
4867
|
+
onRequestClose?: ((event: NativeSyntheticEvent<any>) => void) | undefined;
|
|
4841
4868
|
/**
|
|
4842
4869
|
* The `onShow` prop allows passing a function that will be called once the modal has been shown.
|
|
4843
4870
|
*/
|
|
@@ -4952,7 +4979,7 @@ export interface TouchableWithoutFeedbackPropsAndroid {
|
|
|
4952
4979
|
*
|
|
4953
4980
|
* @platform android
|
|
4954
4981
|
*/
|
|
4955
|
-
touchSoundDisabled?: boolean |
|
|
4982
|
+
touchSoundDisabled?: boolean | undefined;
|
|
4956
4983
|
}
|
|
4957
4984
|
|
|
4958
4985
|
/**
|
|
@@ -4982,7 +5009,7 @@ export interface TouchableWithoutFeedbackProps
|
|
|
4982
5009
|
/**
|
|
4983
5010
|
* If true, disable all interactions for this component.
|
|
4984
5011
|
*/
|
|
4985
|
-
disabled?: boolean |
|
|
5012
|
+
disabled?: boolean | undefined;
|
|
4986
5013
|
|
|
4987
5014
|
/**
|
|
4988
5015
|
* This defines how far your touch can start away from the button.
|
|
@@ -6343,6 +6370,12 @@ export interface ScrollViewPropsIOS {
|
|
|
6343
6370
|
*/
|
|
6344
6371
|
automaticallyAdjustContentInsets?: boolean | undefined; // true
|
|
6345
6372
|
|
|
6373
|
+
/**
|
|
6374
|
+
* Controls whether the ScrollView should automatically adjust its contentInset and
|
|
6375
|
+
* scrollViewInsets when the Keyboard changes its size. The default value is false.
|
|
6376
|
+
*/
|
|
6377
|
+
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
6378
|
+
|
|
6346
6379
|
/**
|
|
6347
6380
|
* Controls whether iOS should automatically adjust the scroll indicator
|
|
6348
6381
|
* insets. The default value is true. Available on iOS 13 and later.
|
|
@@ -6941,10 +6974,11 @@ export interface ActionSheetIOSOptions {
|
|
|
6941
6974
|
title?: string | undefined;
|
|
6942
6975
|
options: string[];
|
|
6943
6976
|
cancelButtonIndex?: number | undefined;
|
|
6944
|
-
destructiveButtonIndex?: number | undefined;
|
|
6977
|
+
destructiveButtonIndex?: number | number[] | undefined | null;
|
|
6945
6978
|
message?: string | undefined;
|
|
6946
6979
|
anchor?: number | undefined;
|
|
6947
6980
|
tintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6981
|
+
cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6948
6982
|
userInterfaceStyle?: 'light' | 'dark' | undefined;
|
|
6949
6983
|
disabledButtonIndices?: number[] | undefined;
|
|
6950
6984
|
}
|
|
@@ -7800,7 +7834,10 @@ export type Permission =
|
|
|
7800
7834
|
| 'android.permission.RECEIVE_WAP_PUSH'
|
|
7801
7835
|
| 'android.permission.RECEIVE_MMS'
|
|
7802
7836
|
| 'android.permission.READ_EXTERNAL_STORAGE'
|
|
7803
|
-
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7837
|
+
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7838
|
+
| 'android.permission.BLUETOOTH_CONNECT'
|
|
7839
|
+
| 'android.permission.BLUETOOTH_SCAN'
|
|
7840
|
+
| 'android.permission.BLUETOOTH_ADVERTISE';
|
|
7804
7841
|
|
|
7805
7842
|
export type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
|
|
7806
7843
|
|
|
@@ -8472,10 +8509,12 @@ export interface SwitchPropsIOS extends ViewProps {
|
|
|
8472
8509
|
tintColor?: ColorValue | undefined;
|
|
8473
8510
|
}
|
|
8474
8511
|
|
|
8475
|
-
export interface
|
|
8476
|
-
|
|
8512
|
+
export interface SwitchChangeEventData extends TargetedEvent {
|
|
8513
|
+
value: boolean;
|
|
8477
8514
|
}
|
|
8478
8515
|
|
|
8516
|
+
export interface SwitchChangeEvent extends NativeSyntheticEvent<SwitchChangeEventData> {}
|
|
8517
|
+
|
|
8479
8518
|
export interface SwitchProps extends SwitchPropsIOS {
|
|
8480
8519
|
/**
|
|
8481
8520
|
* Color of the foreground switch grip.
|
|
@@ -9159,6 +9198,19 @@ export interface ImageStoreStatic {
|
|
|
9159
9198
|
getBase64ForTag(uri: string, success: (base64ImageData: string) => void, failure: (error: any) => void): void;
|
|
9160
9199
|
}
|
|
9161
9200
|
|
|
9201
|
+
//
|
|
9202
|
+
// Turbo Module
|
|
9203
|
+
//
|
|
9204
|
+
|
|
9205
|
+
export interface TurboModule {
|
|
9206
|
+
getConstants?(): {}
|
|
9207
|
+
}
|
|
9208
|
+
|
|
9209
|
+
export const TurboModuleRegistry: {
|
|
9210
|
+
get<T extends TurboModule>(name: string): T | null;
|
|
9211
|
+
getEnforcing<T extends TurboModule>(name: string): T;
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9162
9214
|
//
|
|
9163
9215
|
// Interfacing with Native Modules
|
|
9164
9216
|
// https://reactnative.dev/docs/native-modules-ios
|
package/src/rntypes/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Type definitions for react-native 0.
|
|
1
|
+
// Type definitions for react-native 0.68
|
|
2
2
|
// Project: https://github.com/facebook/react-native
|
|
3
3
|
// Definitions by: Eloy Durán <https://github.com/alloy>
|
|
4
4
|
// HuHuanming <https://github.com/huhuanming>
|
|
@@ -25,22 +25,21 @@
|
|
|
25
25
|
// Xianming Zhong <https://github.com/chinesedfan>
|
|
26
26
|
// Valentyn Tolochko <https://github.com/vtolochk>
|
|
27
27
|
// Sergey Sychev <https://github.com/SychevSP>
|
|
28
|
-
// Kelvin Chu <https://github.com/RageBill>
|
|
29
28
|
// Daiki Ihara <https://github.com/sasurau4>
|
|
30
29
|
// Abe Dolinger <https://github.com/256hz>
|
|
31
30
|
// Dominique Richard <https://github.com/doumart>
|
|
32
31
|
// Mohamed Shaban <https://github.com/drmas>
|
|
33
32
|
// Jérémy Barbet <https://github.com/jeremybarbet>
|
|
34
|
-
// Christian Ost <https://github.com/ca057>
|
|
35
33
|
// David Sheldrick <https://github.com/ds300>
|
|
36
34
|
// Natsathorn Yuthakovit <https://github.com/natsathorn>
|
|
37
35
|
// ConnectDotz <https://github.com/connectdotz>
|
|
38
|
-
// Marcel Lasaj <https://github.com/TheWirv>
|
|
39
36
|
// Alexey Molchan <https://github.com/alexeymolchan>
|
|
40
37
|
// Alex Brazier <https://github.com/alexbrazier>
|
|
41
38
|
// Arafat Zahan <https://github.com/kuasha420>
|
|
42
39
|
// Pedro Hernández <https://github.com/phvillegas>
|
|
43
40
|
// Sebastian Silbermann <https://github.com/eps1lon>
|
|
41
|
+
// Zihan Chen <https://github.com/ZihanChen-MSFT>
|
|
42
|
+
// Saad Najmi <https://github.com/saadnajmi>
|
|
44
43
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
45
44
|
// TypeScript Version: 3.0
|
|
46
45
|
|
|
@@ -371,7 +370,7 @@ type TaskProvider = () => Task;
|
|
|
371
370
|
type NodeHandle = number;
|
|
372
371
|
|
|
373
372
|
// Similar to React.SyntheticEvent except for nativeEvent
|
|
374
|
-
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T,
|
|
373
|
+
export interface NativeSyntheticEvent<T> extends React.BaseSyntheticEvent<T, React.ElementRef<HostComponent<unknown>>, React.ElementRef<HostComponent<unknown>>> {}
|
|
375
374
|
|
|
376
375
|
export interface NativeTouchEvent {
|
|
377
376
|
/**
|
|
@@ -407,7 +406,7 @@ export interface NativeTouchEvent {
|
|
|
407
406
|
/**
|
|
408
407
|
* The node id of the element receiving the touch event
|
|
409
408
|
*/
|
|
410
|
-
target:
|
|
409
|
+
target: NodeHandle;
|
|
411
410
|
|
|
412
411
|
/**
|
|
413
412
|
* A time identifier for the touch, useful for velocity calculation
|
|
@@ -426,8 +425,18 @@ export interface NativeTouchEvent {
|
|
|
426
425
|
force?: number | undefined;
|
|
427
426
|
}
|
|
428
427
|
|
|
428
|
+
export interface NativeMouseEvent {
|
|
429
|
+
clientX: number,
|
|
430
|
+
clientY: number,
|
|
431
|
+
pageX: number,
|
|
432
|
+
pageY: number,
|
|
433
|
+
timestamp: number,
|
|
434
|
+
}
|
|
435
|
+
|
|
429
436
|
export interface GestureResponderEvent extends NativeSyntheticEvent<NativeTouchEvent> {}
|
|
430
437
|
|
|
438
|
+
export interface MouseEvent extends NativeSyntheticEvent<NativeMouseEvent> {}
|
|
439
|
+
|
|
431
440
|
// See https://reactnative.dev/docs/scrollview#contentoffset
|
|
432
441
|
export interface PointPropType {
|
|
433
442
|
x: number;
|
|
@@ -453,6 +462,16 @@ export interface PressableAndroidRippleConfig {
|
|
|
453
462
|
}
|
|
454
463
|
|
|
455
464
|
export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'children' | 'style' | 'hitSlop'> {
|
|
465
|
+
/**
|
|
466
|
+
* Called when the hover is activated to provide visual feedback.
|
|
467
|
+
*/
|
|
468
|
+
onHoverIn?: null | ((event: MouseEvent) => void) | undefined,
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Called when the hover is deactivated to undo visual feedback.
|
|
472
|
+
*/
|
|
473
|
+
onHoverOut?: null | ((event: MouseEvent) => void) | undefined,
|
|
474
|
+
|
|
456
475
|
/**
|
|
457
476
|
* Called when a single tap gesture is detected.
|
|
458
477
|
*/
|
|
@@ -475,13 +494,13 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
475
494
|
|
|
476
495
|
/**
|
|
477
496
|
* Called after the element loses focus.
|
|
478
|
-
* @platform windows
|
|
497
|
+
* @platform macos windows
|
|
479
498
|
*/
|
|
480
499
|
onBlur?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
481
500
|
|
|
482
501
|
/**
|
|
483
502
|
* Called after the element is focused.
|
|
484
|
-
* @platform windows
|
|
503
|
+
* @platform macos windows
|
|
485
504
|
*/
|
|
486
505
|
onFocus?: null | ((event: NativeSyntheticEvent<TargetedEvent>) => void) | undefined;
|
|
487
506
|
|
|
@@ -497,6 +516,16 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
497
516
|
*/
|
|
498
517
|
cancelable?: null | boolean | undefined;
|
|
499
518
|
|
|
519
|
+
/**
|
|
520
|
+
* Duration to wait after hover in before calling `onHoverIn`.
|
|
521
|
+
*/
|
|
522
|
+
delayHoverIn?: number | null | undefined;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Duration to wait after hover out before calling `onHoverOut`.
|
|
526
|
+
*/
|
|
527
|
+
delayHoverOut?: number | null | undefined;
|
|
528
|
+
|
|
500
529
|
/**
|
|
501
530
|
* Duration (in milliseconds) from `onPressIn` before `onLongPress` is called.
|
|
502
531
|
*/
|
|
@@ -538,6 +567,11 @@ export interface PressableProps extends AccessibilityProps, Omit<ViewProps, 'chi
|
|
|
538
567
|
* the component is currently pressed and returns view styles.
|
|
539
568
|
*/
|
|
540
569
|
style?: StyleProp<ViewStyle> | ((state: PressableStateCallbackType) => StyleProp<ViewStyle>) | undefined;
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Duration (in milliseconds) to wait after press down before calling onPressIn.
|
|
573
|
+
*/
|
|
574
|
+
unstable_pressDelay?: number
|
|
541
575
|
}
|
|
542
576
|
|
|
543
577
|
// TODO use React.AbstractComponent when available
|
|
@@ -880,7 +914,7 @@ export interface LayoutRectangle {
|
|
|
880
914
|
}
|
|
881
915
|
|
|
882
916
|
// @see TextProps.onLayout
|
|
883
|
-
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle }>;
|
|
917
|
+
export type LayoutChangeEvent = NativeSyntheticEvent<{ layout: LayoutRectangle, target?: NodeHandle | null }>;
|
|
884
918
|
|
|
885
919
|
interface TextLayoutLine {
|
|
886
920
|
ascender: number;
|
|
@@ -959,6 +993,11 @@ export interface TextPropsIOS {
|
|
|
959
993
|
}
|
|
960
994
|
|
|
961
995
|
export interface TextPropsAndroid {
|
|
996
|
+
/**
|
|
997
|
+
* Specifies the disabled state of the text view for testing purposes.
|
|
998
|
+
*/
|
|
999
|
+
disabled?: boolean | undefined;
|
|
1000
|
+
|
|
962
1001
|
/**
|
|
963
1002
|
* Lets the user select text, to use the native copy and paste functionality.
|
|
964
1003
|
*/
|
|
@@ -988,8 +1027,7 @@ export interface TextPropsAndroid {
|
|
|
988
1027
|
| 'normal'
|
|
989
1028
|
| 'none'
|
|
990
1029
|
| 'full'
|
|
991
|
-
|
|
|
992
|
-
| 'balanced' | undefined;
|
|
1030
|
+
| undefined;
|
|
993
1031
|
}
|
|
994
1032
|
|
|
995
1033
|
// https://reactnative.dev/docs/text#props
|
|
@@ -3220,12 +3258,6 @@ export interface RefreshControlPropsAndroid extends ViewProps {
|
|
|
3220
3258
|
* Size of the refresh indicator, see RefreshControl.SIZE.
|
|
3221
3259
|
*/
|
|
3222
3260
|
size?: number | undefined;
|
|
3223
|
-
|
|
3224
|
-
/**
|
|
3225
|
-
* Progress view top offset
|
|
3226
|
-
* @platform android
|
|
3227
|
-
*/
|
|
3228
|
-
progressViewOffset?: number | undefined;
|
|
3229
3261
|
}
|
|
3230
3262
|
|
|
3231
3263
|
export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshControlPropsAndroid {
|
|
@@ -3238,6 +3270,11 @@ export interface RefreshControlProps extends RefreshControlPropsIOS, RefreshCont
|
|
|
3238
3270
|
* Whether the view should be indicating an active refresh.
|
|
3239
3271
|
*/
|
|
3240
3272
|
refreshing: boolean;
|
|
3273
|
+
|
|
3274
|
+
/**
|
|
3275
|
+
* Progress view top offset
|
|
3276
|
+
*/
|
|
3277
|
+
progressViewOffset?: number | undefined;
|
|
3241
3278
|
}
|
|
3242
3279
|
|
|
3243
3280
|
/**
|
|
@@ -3648,18 +3685,6 @@ interface ImagePropsAndroid {
|
|
|
3648
3685
|
* @platform android
|
|
3649
3686
|
*/
|
|
3650
3687
|
fadeDuration?: number | undefined;
|
|
3651
|
-
|
|
3652
|
-
/**
|
|
3653
|
-
* Required if loading images via 'uri' from drawable folder on Android.
|
|
3654
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3655
|
-
*/
|
|
3656
|
-
width?: number | undefined;
|
|
3657
|
-
|
|
3658
|
-
/**
|
|
3659
|
-
* Required if loading images via 'uri' from drawable folder on Android
|
|
3660
|
-
* Explanation: https://medium.com/@adamjacobb/react-native-performance-images-adf5843e120
|
|
3661
|
-
*/
|
|
3662
|
-
height?: number | undefined;
|
|
3663
3688
|
}
|
|
3664
3689
|
|
|
3665
3690
|
/**
|
|
@@ -3844,6 +3869,7 @@ export class Image extends ImageBase {
|
|
|
3844
3869
|
}
|
|
3845
3870
|
|
|
3846
3871
|
export interface ImageBackgroundProps extends ImagePropsBase {
|
|
3872
|
+
children?: React.ReactNode;
|
|
3847
3873
|
imageStyle?: StyleProp<ImageStyle> | undefined;
|
|
3848
3874
|
style?: StyleProp<ViewStyle> | undefined;
|
|
3849
3875
|
imageRef?(image: Image): void;
|
|
@@ -4834,10 +4860,11 @@ export interface ModalBaseProps {
|
|
|
4834
4860
|
*/
|
|
4835
4861
|
visible?: boolean | undefined;
|
|
4836
4862
|
/**
|
|
4837
|
-
* The `onRequestClose`
|
|
4838
|
-
*
|
|
4863
|
+
* The `onRequestClose` callback is called when the user taps the hardware back button on Android or the menu button on Apple TV.
|
|
4864
|
+
*
|
|
4865
|
+
* This is required on Apple TV and Android.
|
|
4839
4866
|
*/
|
|
4840
|
-
onRequestClose?: (() => void) | undefined;
|
|
4867
|
+
onRequestClose?: ((event: NativeSyntheticEvent<any>) => void) | undefined;
|
|
4841
4868
|
/**
|
|
4842
4869
|
* The `onShow` prop allows passing a function that will be called once the modal has been shown.
|
|
4843
4870
|
*/
|
|
@@ -4952,7 +4979,7 @@ export interface TouchableWithoutFeedbackPropsAndroid {
|
|
|
4952
4979
|
*
|
|
4953
4980
|
* @platform android
|
|
4954
4981
|
*/
|
|
4955
|
-
touchSoundDisabled?: boolean |
|
|
4982
|
+
touchSoundDisabled?: boolean | undefined;
|
|
4956
4983
|
}
|
|
4957
4984
|
|
|
4958
4985
|
/**
|
|
@@ -4982,7 +5009,7 @@ export interface TouchableWithoutFeedbackProps
|
|
|
4982
5009
|
/**
|
|
4983
5010
|
* If true, disable all interactions for this component.
|
|
4984
5011
|
*/
|
|
4985
|
-
disabled?: boolean |
|
|
5012
|
+
disabled?: boolean | undefined;
|
|
4986
5013
|
|
|
4987
5014
|
/**
|
|
4988
5015
|
* This defines how far your touch can start away from the button.
|
|
@@ -6343,6 +6370,12 @@ export interface ScrollViewPropsIOS {
|
|
|
6343
6370
|
*/
|
|
6344
6371
|
automaticallyAdjustContentInsets?: boolean | undefined; // true
|
|
6345
6372
|
|
|
6373
|
+
/**
|
|
6374
|
+
* Controls whether the ScrollView should automatically adjust its contentInset and
|
|
6375
|
+
* scrollViewInsets when the Keyboard changes its size. The default value is false.
|
|
6376
|
+
*/
|
|
6377
|
+
automaticallyAdjustKeyboardInsets?: boolean | undefined;
|
|
6378
|
+
|
|
6346
6379
|
/**
|
|
6347
6380
|
* Controls whether iOS should automatically adjust the scroll indicator
|
|
6348
6381
|
* insets. The default value is true. Available on iOS 13 and later.
|
|
@@ -6941,10 +6974,11 @@ export interface ActionSheetIOSOptions {
|
|
|
6941
6974
|
title?: string | undefined;
|
|
6942
6975
|
options: string[];
|
|
6943
6976
|
cancelButtonIndex?: number | undefined;
|
|
6944
|
-
destructiveButtonIndex?: number | undefined;
|
|
6977
|
+
destructiveButtonIndex?: number | number[] | undefined | null;
|
|
6945
6978
|
message?: string | undefined;
|
|
6946
6979
|
anchor?: number | undefined;
|
|
6947
6980
|
tintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6981
|
+
cancelButtonTintColor?: ColorValue | ProcessedColorValue | undefined;
|
|
6948
6982
|
userInterfaceStyle?: 'light' | 'dark' | undefined;
|
|
6949
6983
|
disabledButtonIndices?: number[] | undefined;
|
|
6950
6984
|
}
|
|
@@ -7800,7 +7834,10 @@ export type Permission =
|
|
|
7800
7834
|
| 'android.permission.RECEIVE_WAP_PUSH'
|
|
7801
7835
|
| 'android.permission.RECEIVE_MMS'
|
|
7802
7836
|
| 'android.permission.READ_EXTERNAL_STORAGE'
|
|
7803
|
-
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7837
|
+
| 'android.permission.WRITE_EXTERNAL_STORAGE'
|
|
7838
|
+
| 'android.permission.BLUETOOTH_CONNECT'
|
|
7839
|
+
| 'android.permission.BLUETOOTH_SCAN'
|
|
7840
|
+
| 'android.permission.BLUETOOTH_ADVERTISE';
|
|
7804
7841
|
|
|
7805
7842
|
export type PermissionStatus = 'granted' | 'denied' | 'never_ask_again';
|
|
7806
7843
|
|
|
@@ -8472,10 +8509,12 @@ export interface SwitchPropsIOS extends ViewProps {
|
|
|
8472
8509
|
tintColor?: ColorValue | undefined;
|
|
8473
8510
|
}
|
|
8474
8511
|
|
|
8475
|
-
export interface
|
|
8476
|
-
|
|
8512
|
+
export interface SwitchChangeEventData extends TargetedEvent {
|
|
8513
|
+
value: boolean;
|
|
8477
8514
|
}
|
|
8478
8515
|
|
|
8516
|
+
export interface SwitchChangeEvent extends NativeSyntheticEvent<SwitchChangeEventData> {}
|
|
8517
|
+
|
|
8479
8518
|
export interface SwitchProps extends SwitchPropsIOS {
|
|
8480
8519
|
/**
|
|
8481
8520
|
* Color of the foreground switch grip.
|
|
@@ -9159,6 +9198,19 @@ export interface ImageStoreStatic {
|
|
|
9159
9198
|
getBase64ForTag(uri: string, success: (base64ImageData: string) => void, failure: (error: any) => void): void;
|
|
9160
9199
|
}
|
|
9161
9200
|
|
|
9201
|
+
//
|
|
9202
|
+
// Turbo Module
|
|
9203
|
+
//
|
|
9204
|
+
|
|
9205
|
+
export interface TurboModule {
|
|
9206
|
+
getConstants?(): {}
|
|
9207
|
+
}
|
|
9208
|
+
|
|
9209
|
+
export const TurboModuleRegistry: {
|
|
9210
|
+
get<T extends TurboModule>(name: string): T | null;
|
|
9211
|
+
getEnforcing<T extends TurboModule>(name: string): T;
|
|
9212
|
+
}
|
|
9213
|
+
|
|
9162
9214
|
//
|
|
9163
9215
|
// Interfacing with Native Modules
|
|
9164
9216
|
// https://reactnative.dev/docs/native-modules-ios
|