@office-iss/react-native-win32 0.71.0-preview.1 → 0.71.0-preview.2
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 +16 -1
- package/CHANGELOG.md +12 -4
- package/Libraries/Components/Pressable/Pressable.win32.js +0 -20
- package/package.json +1 -1
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, 19 Dec 2022 16:14:31 GMT",
|
|
6
|
+
"tag": "@office-iss/react-native-win32_v0.71.0-preview.2",
|
|
7
|
+
"version": "0.71.0-preview.2",
|
|
8
|
+
"comments": {
|
|
9
|
+
"prerelease": [
|
|
10
|
+
{
|
|
11
|
+
"author": "sanajmi@microsoft.com",
|
|
12
|
+
"package": "@office-iss/react-native-win32",
|
|
13
|
+
"commit": "ca74f27bb2fc5f96d982a3175b33dd02a1a648d3",
|
|
14
|
+
"comment": "Remove unnecessary overrides to onFocus and onBlur in Pressable"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"date": "Mon, 12 Dec 2022 16:16:50 GMT",
|
|
6
21
|
"tag": "@office-iss/react-native-win32_v0.71.0-preview.1",
|
|
7
22
|
"version": "0.71.0-preview.1",
|
|
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, 19 Dec 2022 16:14:31 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
-
## 0.71.0-preview.
|
|
7
|
+
## 0.71.0-preview.2
|
|
8
8
|
|
|
9
|
-
Mon,
|
|
9
|
+
Mon, 19 Dec 2022 16:14:31 GMT
|
|
10
10
|
|
|
11
11
|
### Changes
|
|
12
12
|
|
|
13
|
-
-
|
|
13
|
+
- Remove unnecessary overrides to onFocus and onBlur in Pressable (sanajmi@microsoft.com)
|
|
14
14
|
|
|
15
|
+
## 0.71.0-preview.1
|
|
16
|
+
|
|
17
|
+
Mon, 12 Dec 2022 16:16:50 GMT
|
|
18
|
+
|
|
19
|
+
### Changes
|
|
20
|
+
|
|
21
|
+
- Promote 0.71 to preview (34109996+chiaramooney@users.noreply.github.com)
|
|
22
|
+
|
|
15
23
|
## 0.0.0-canary.170
|
|
16
24
|
|
|
17
25
|
Fri, 02 Dec 2022 06:19:04 GMT
|
|
@@ -289,22 +289,6 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
289
289
|
const viewRef = useRef<React.ElementRef<typeof View> | null>(null);
|
|
290
290
|
useImperativeHandle(forwardedRef, () => viewRef.current);
|
|
291
291
|
|
|
292
|
-
// [Windows
|
|
293
|
-
const _onBlur = (event: BlurEvent) => {
|
|
294
|
-
TextInputState.blurInput(viewRef.current);
|
|
295
|
-
if (props.onBlur) {
|
|
296
|
-
props.onBlur(event);
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
const _onFocus = (event: FocusEvent) => {
|
|
301
|
-
TextInputState.focusInput(viewRef.current);
|
|
302
|
-
if (props.onFocus) {
|
|
303
|
-
props.onFocus(event);
|
|
304
|
-
}
|
|
305
|
-
};
|
|
306
|
-
// Windows]
|
|
307
|
-
|
|
308
292
|
const android_rippleConfig = useAndroidRippleForView(android_ripple, viewRef);
|
|
309
293
|
|
|
310
294
|
const [pressed, setPressed] = usePressState(testOnly_pressed === true);
|
|
@@ -418,10 +402,6 @@ function Pressable(props: Props, forwardedRef): React.Node {
|
|
|
418
402
|
<View
|
|
419
403
|
{...restPropsWithDefaults}
|
|
420
404
|
{...eventHandlers}
|
|
421
|
-
// [Windows
|
|
422
|
-
onBlur={_onBlur}
|
|
423
|
-
onFocus={_onFocus}
|
|
424
|
-
// Windows]
|
|
425
405
|
ref={viewRef}
|
|
426
406
|
style={typeof style === 'function' ? style({pressed}) : style}>
|
|
427
407
|
{typeof children === 'function' ? children({pressed}) : children}
|
package/package.json
CHANGED