react-native 0.0.0-20220107-2008-ca5aaa766 → 0.0.0-20220111-2009-bd7caa64f
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/DrawerAndroid/AndroidDrawerLayoutNativeComponent.js +2 -2
- package/Libraries/Components/TextInput/AndroidTextInputNativeComponent.js +115 -2
- package/Libraries/Components/View/ViewPropTypes.js +7 -0
- package/Libraries/Core/ReactNativeVersion.js +1 -1
- package/Libraries/NativeComponent/NativeComponentRegistry.js +1 -19
- package/Libraries/NativeComponent/NativeComponentRegistryUnstable.js +27 -0
- package/Libraries/ReactNative/DummyUIManager.js +12 -5
- package/Libraries/ReactNative/UIManager.js +11 -8
- package/Libraries/ReactNative/UIManagerInjection.js +5 -3
- package/Libraries/Renderer/REVISION +1 -1
- package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +3 -6
- package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +9 -11
- package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +10 -12
- package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +3 -5
- package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +4 -4
- package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +5 -5
- package/React/Base/RCTVersion.m +1 -1
- package/React/Fabric/Mounting/RCTComponentViewFactory.mm +1 -0
- package/ReactAndroid/build.gradle +5 -5
- package/ReactAndroid/src/main/java/com/facebook/react/fabric/jni/ReactNativeConfigHolder.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/modules/systeminfo/ReactNativeVersion.java +1 -1
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.cpp +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/turbomodule/core/jni/ReactCommon/TurboModuleManager.h +0 -1
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManager.java +15 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/BaseViewManagerAdapter.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java +12 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerDelegate.java +4 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/BaseViewManagerInterface.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/uimanager/interfaces/ViewProps.java +1 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java +3 -0
- package/ReactAndroid/src/main/java/com/facebook/react/views/progressbar/ReactProgressBarViewManager.java +2 -0
- package/ReactAndroid/src/main/res/views/uimanager/values/ids.xml +3 -0
- package/ReactCommon/cxxreact/ReactNativeVersion.h +1 -1
- package/android/com/facebook/react/react-native/{0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.aar → 0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.aar} +0 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.aar.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.aar.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.aar.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.aar.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.module → 0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.module} +15 -15
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.module.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.module.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.module.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.module.sha512 +1 -0
- package/android/com/facebook/react/react-native/{0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.pom → 0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.pom} +1 -1
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.pom.md5 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.pom.sha1 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.pom.sha256 +1 -0
- package/android/com/facebook/react/react-native/0.0.0-20220111-2009-bd7caa64f/react-native-0.0.0-20220111-2009-bd7caa64f.pom.sha512 +1 -0
- package/android/com/facebook/react/react-native/maven-metadata.xml +4 -4
- package/android/com/facebook/react/react-native/maven-metadata.xml.md5 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha1 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha256 +1 -1
- package/android/com/facebook/react/react-native/maven-metadata.xml.sha512 +1 -1
- package/package.json +1 -1
- package/template/Gemfile.lock +1 -1
- package/template/android/build.gradle +1 -1
- package/template/android/settings.gradle +1 -5
- package/template/package.json +1 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.aar.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.aar.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.aar.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.aar.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.module.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.module.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.module.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.module.sha512 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.pom.md5 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.pom.sha1 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.pom.sha256 +0 -1
- package/android/com/facebook/react/react-native/0.0.0-20220107-2008-ca5aaa766/react-native-0.0.0-20220107-2008-ca5aaa766.pom.sha512 +0 -1
|
@@ -92,12 +92,12 @@ type NativeProps = $ReadOnly<{|
|
|
|
92
92
|
/**
|
|
93
93
|
* Function called whenever the navigation view has been opened.
|
|
94
94
|
*/
|
|
95
|
-
onDrawerOpen?: ?DirectEventHandler<null
|
|
95
|
+
onDrawerOpen?: ?DirectEventHandler<null>,
|
|
96
96
|
|
|
97
97
|
/**
|
|
98
98
|
* Function called whenever the navigation view has been closed.
|
|
99
99
|
*/
|
|
100
|
-
onDrawerClose?: ?DirectEventHandler<null
|
|
100
|
+
onDrawerClose?: ?DirectEventHandler<null>,
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* Make the drawer take the entire screen and draw the background of the
|
|
@@ -25,7 +25,6 @@ import type {
|
|
|
25
25
|
} from '../../StyleSheet/StyleSheet';
|
|
26
26
|
import codegenNativeCommands from '../../Utilities/codegenNativeCommands';
|
|
27
27
|
import type {TextInputNativeCommands} from './TextInputNativeCommands';
|
|
28
|
-
import AndroidTextInputViewConfig from './AndroidTextInputViewConfig';
|
|
29
28
|
import * as NativeComponentRegistry from '../../NativeComponent/NativeComponentRegistry';
|
|
30
29
|
|
|
31
30
|
export type KeyboardType =
|
|
@@ -596,7 +595,121 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
|
|
|
596
595
|
|
|
597
596
|
let AndroidTextInputNativeComponent = NativeComponentRegistry.get<NativeProps>(
|
|
598
597
|
'AndroidTextInput',
|
|
599
|
-
() =>
|
|
598
|
+
() => ({
|
|
599
|
+
uiViewClassName: 'AndroidTextInput',
|
|
600
|
+
bubblingEventTypes: {
|
|
601
|
+
topBlur: {
|
|
602
|
+
phasedRegistrationNames: {
|
|
603
|
+
bubbled: 'onBlur',
|
|
604
|
+
captured: 'onBlurCapture',
|
|
605
|
+
},
|
|
606
|
+
},
|
|
607
|
+
topEndEditing: {
|
|
608
|
+
phasedRegistrationNames: {
|
|
609
|
+
bubbled: 'onEndEditing',
|
|
610
|
+
captured: 'onEndEditingCapture',
|
|
611
|
+
},
|
|
612
|
+
},
|
|
613
|
+
topFocus: {
|
|
614
|
+
phasedRegistrationNames: {
|
|
615
|
+
bubbled: 'onFocus',
|
|
616
|
+
captured: 'onFocusCapture',
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
topKeyPress: {
|
|
620
|
+
phasedRegistrationNames: {
|
|
621
|
+
bubbled: 'onKeyPress',
|
|
622
|
+
captured: 'onKeyPressCapture',
|
|
623
|
+
},
|
|
624
|
+
},
|
|
625
|
+
topSubmitEditing: {
|
|
626
|
+
phasedRegistrationNames: {
|
|
627
|
+
bubbled: 'onSubmitEditing',
|
|
628
|
+
captured: 'onSubmitEditingCapture',
|
|
629
|
+
},
|
|
630
|
+
},
|
|
631
|
+
topTextInput: {
|
|
632
|
+
phasedRegistrationNames: {
|
|
633
|
+
bubbled: 'onTextInput',
|
|
634
|
+
captured: 'onTextInputCapture',
|
|
635
|
+
},
|
|
636
|
+
},
|
|
637
|
+
},
|
|
638
|
+
directEventTypes: {
|
|
639
|
+
topScroll: {
|
|
640
|
+
registrationName: 'onScroll',
|
|
641
|
+
},
|
|
642
|
+
},
|
|
643
|
+
validAttributes: {
|
|
644
|
+
maxFontSizeMultiplier: true,
|
|
645
|
+
adjustsFontSizeToFit: true,
|
|
646
|
+
minimumFontScale: true,
|
|
647
|
+
autoFocus: true,
|
|
648
|
+
placeholder: true,
|
|
649
|
+
inlineImagePadding: true,
|
|
650
|
+
contextMenuHidden: true,
|
|
651
|
+
textShadowColor: {process: require('../../StyleSheet/processColor')},
|
|
652
|
+
maxLength: true,
|
|
653
|
+
selectTextOnFocus: true,
|
|
654
|
+
textShadowRadius: true,
|
|
655
|
+
underlineColorAndroid: {
|
|
656
|
+
process: require('../../StyleSheet/processColor'),
|
|
657
|
+
},
|
|
658
|
+
textDecorationLine: true,
|
|
659
|
+
blurOnSubmit: true,
|
|
660
|
+
textAlignVertical: true,
|
|
661
|
+
fontStyle: true,
|
|
662
|
+
textShadowOffset: true,
|
|
663
|
+
selectionColor: {process: require('../../StyleSheet/processColor')},
|
|
664
|
+
selection: true,
|
|
665
|
+
placeholderTextColor: {process: require('../../StyleSheet/processColor')},
|
|
666
|
+
importantForAutofill: true,
|
|
667
|
+
lineHeight: true,
|
|
668
|
+
textTransform: true,
|
|
669
|
+
returnKeyType: true,
|
|
670
|
+
keyboardType: true,
|
|
671
|
+
multiline: true,
|
|
672
|
+
color: {process: require('../../StyleSheet/processColor')},
|
|
673
|
+
autoComplete: true,
|
|
674
|
+
numberOfLines: true,
|
|
675
|
+
letterSpacing: true,
|
|
676
|
+
returnKeyLabel: true,
|
|
677
|
+
fontSize: true,
|
|
678
|
+
onKeyPress: true,
|
|
679
|
+
cursorColor: {process: require('../../StyleSheet/processColor')},
|
|
680
|
+
text: true,
|
|
681
|
+
showSoftInputOnFocus: true,
|
|
682
|
+
textAlign: true,
|
|
683
|
+
autoCapitalize: true,
|
|
684
|
+
autoCorrect: true,
|
|
685
|
+
caretHidden: true,
|
|
686
|
+
secureTextEntry: true,
|
|
687
|
+
textBreakStrategy: true,
|
|
688
|
+
onScroll: true,
|
|
689
|
+
onContentSizeChange: true,
|
|
690
|
+
disableFullscreenUI: true,
|
|
691
|
+
includeFontPadding: true,
|
|
692
|
+
fontWeight: true,
|
|
693
|
+
fontFamily: true,
|
|
694
|
+
allowFontScaling: true,
|
|
695
|
+
onSelectionChange: true,
|
|
696
|
+
mostRecentEventCount: true,
|
|
697
|
+
inlineImageLeft: true,
|
|
698
|
+
editable: true,
|
|
699
|
+
fontVariant: true,
|
|
700
|
+
borderBottomRightRadius: true,
|
|
701
|
+
borderBottomColor: {process: require('../../StyleSheet/processColor')},
|
|
702
|
+
borderRadius: true,
|
|
703
|
+
borderRightColor: {process: require('../../StyleSheet/processColor')},
|
|
704
|
+
borderColor: {process: require('../../StyleSheet/processColor')},
|
|
705
|
+
borderTopRightRadius: true,
|
|
706
|
+
borderStyle: true,
|
|
707
|
+
borderBottomLeftRadius: true,
|
|
708
|
+
borderLeftColor: {process: require('../../StyleSheet/processColor')},
|
|
709
|
+
borderTopLeftRadius: true,
|
|
710
|
+
borderTopColor: {process: require('../../StyleSheet/processColor')},
|
|
711
|
+
},
|
|
712
|
+
}),
|
|
600
713
|
);
|
|
601
714
|
|
|
602
715
|
// flowlint-next-line unclear-type:off
|
|
@@ -432,6 +432,13 @@ export type ViewProps = $ReadOnly<{|
|
|
|
432
432
|
*/
|
|
433
433
|
accessibilityActions?: ?$ReadOnlyArray<AccessibilityActionInfo>,
|
|
434
434
|
|
|
435
|
+
/**
|
|
436
|
+
* Specifies the nativeID of the associated label text. When the assistive technology focuses on the component with this props, the text is read aloud.
|
|
437
|
+
*
|
|
438
|
+
* @platform android
|
|
439
|
+
*/
|
|
440
|
+
accessibilityLabelledBy?: ?string | ?Array<string>,
|
|
441
|
+
|
|
435
442
|
/**
|
|
436
443
|
* Views that are only used to layout their children or otherwise don't draw
|
|
437
444
|
* anything may be automatically removed from the native hierarchy as an
|
|
@@ -116,6 +116,7 @@ export function getWithFallback_DEPRECATED<Config>(
|
|
|
116
116
|
viewConfigProvider: () => PartialViewConfig,
|
|
117
117
|
): React.AbstractComponent<Config> {
|
|
118
118
|
if (getRuntimeConfig == null) {
|
|
119
|
+
// `getRuntimeConfig == null` when static view configs are disabled
|
|
119
120
|
// If `setRuntimeConfigProvider` is not configured, use native reflection.
|
|
120
121
|
if (hasNativeViewConfig(name)) {
|
|
121
122
|
return get<Config>(name, viewConfigProvider);
|
|
@@ -151,22 +152,3 @@ export function unstable_hasStaticViewConfig(name: string): boolean {
|
|
|
151
152
|
};
|
|
152
153
|
return !native;
|
|
153
154
|
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* Unstable API. Do not use!
|
|
157
|
-
*
|
|
158
|
-
* This method returns if the component with name received as a parameter
|
|
159
|
-
* is registed in the native platform.
|
|
160
|
-
*/
|
|
161
|
-
export function unstable_hasComponent(name: string): boolean {
|
|
162
|
-
let hasNativeComponent = componentNameToExists.get(name);
|
|
163
|
-
if (hasNativeComponent == null) {
|
|
164
|
-
if (global.__nativeComponentRegistry__hasComponent) {
|
|
165
|
-
hasNativeComponent = global.__nativeComponentRegistry__hasComponent(name);
|
|
166
|
-
componentNameToExists.set(name, hasNativeComponent);
|
|
167
|
-
} else {
|
|
168
|
-
throw `unstable_hasComponent('${name}'): Global function is not registered`;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
return hasNativeComponent;
|
|
172
|
-
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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
|
+
|
|
8
|
+
let componentNameToExists: Map<string, boolean> = new Map();
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Unstable API. Do not use!
|
|
12
|
+
*
|
|
13
|
+
* This method returns if the component with name received as a parameter
|
|
14
|
+
* is registed in the native platform.
|
|
15
|
+
*/
|
|
16
|
+
export function unstable_hasComponent(name: string): boolean {
|
|
17
|
+
let hasNativeComponent = componentNameToExists.get(name);
|
|
18
|
+
if (hasNativeComponent == null) {
|
|
19
|
+
if (global.__nativeComponentRegistry__hasComponent) {
|
|
20
|
+
hasNativeComponent = global.__nativeComponentRegistry__hasComponent(name);
|
|
21
|
+
componentNameToExists.set(name, hasNativeComponent);
|
|
22
|
+
} else {
|
|
23
|
+
throw `unstable_hasComponent('${name}'): Global function is not registered`;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
return hasNativeComponent;
|
|
27
|
+
}
|
|
@@ -11,11 +11,13 @@
|
|
|
11
11
|
'use strict';
|
|
12
12
|
|
|
13
13
|
import type {RootTag} from 'react-native/Libraries/Types/RootTagTypes';
|
|
14
|
+
import {unstable_hasComponent} from 'react-native/Libraries/NativeComponent/NativeComponentRegistryUnstable';
|
|
14
15
|
|
|
15
16
|
module.exports = {
|
|
16
17
|
getViewManagerConfig: (viewManagerName: string): mixed => {
|
|
17
18
|
console.warn(
|
|
18
|
-
'
|
|
19
|
+
'getViewManagerConfig is unavailable in Bridgeless, use hasViewManagerConfig instead. viewManagerName: ' +
|
|
20
|
+
viewManagerName,
|
|
19
21
|
);
|
|
20
22
|
if (viewManagerName === 'RCTVirtualText') {
|
|
21
23
|
return {};
|
|
@@ -23,10 +25,15 @@ module.exports = {
|
|
|
23
25
|
return null;
|
|
24
26
|
},
|
|
25
27
|
hasViewManagerConfig: (viewManagerName: string): boolean => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
viewManagerName
|
|
29
|
-
|
|
28
|
+
const staticViewConfigsEnabled = global.__fbStaticViewConfig === true;
|
|
29
|
+
if (staticViewConfigsEnabled) {
|
|
30
|
+
return unstable_hasComponent(viewManagerName);
|
|
31
|
+
} else {
|
|
32
|
+
return (
|
|
33
|
+
viewManagerName === 'RCTVirtualText' ||
|
|
34
|
+
viewManagerName === 'RCTShimmeringView'
|
|
35
|
+
);
|
|
36
|
+
}
|
|
30
37
|
},
|
|
31
38
|
getConstants: (): {...} => ({}),
|
|
32
39
|
getConstantsForViewManager: (viewManagerName: string) => {},
|
|
@@ -8,11 +8,10 @@
|
|
|
8
8
|
* @format
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
import UIManagerInjection from './UIManagerInjection';
|
|
12
11
|
import type {Spec} from './NativeUIManager';
|
|
13
12
|
import type {RootTag} from 'react-native/Libraries/Types/RootTagTypes';
|
|
14
13
|
|
|
15
|
-
interface UIManagerJSInterface extends Spec {
|
|
14
|
+
export interface UIManagerJSInterface extends Spec {
|
|
16
15
|
+getViewManagerConfig: (viewManagerName: string) => Object;
|
|
17
16
|
+hasViewManagerConfig: (viewManagerName: string) => boolean;
|
|
18
17
|
+createView: (
|
|
@@ -32,11 +31,15 @@ interface UIManagerJSInterface extends Spec {
|
|
|
32
31
|
) => void;
|
|
33
32
|
}
|
|
34
33
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
34
|
+
var UIManager: UIManagerJSInterface;
|
|
35
|
+
if (global.RN$Bridgeless === true) {
|
|
36
|
+
// $FlowExpectedError[incompatible-type]
|
|
37
|
+
UIManager = require('./DummyUIManager');
|
|
38
|
+
} else {
|
|
39
|
+
const {unstable_UIManager} = require('./UIManagerInjection');
|
|
40
|
+
UIManager = unstable_UIManager
|
|
41
|
+
? unstable_UIManager
|
|
42
|
+
: require('./PaperUIManager');
|
|
43
|
+
}
|
|
41
44
|
|
|
42
45
|
module.exports = UIManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
fe905f152f1c9740279e31ce4478a5b8ca75172e
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<c25a06061e121dbc12cecb2884507dfa>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
@@ -4990,7 +4990,6 @@ function shim() {
|
|
|
4990
4990
|
|
|
4991
4991
|
var supportsMutation = false;
|
|
4992
4992
|
var commitMount = shim;
|
|
4993
|
-
var clearContainer = shim;
|
|
4994
4993
|
|
|
4995
4994
|
// Renderers that don't support hydration
|
|
4996
4995
|
// can re-export everything from this module.
|
|
@@ -6009,7 +6008,7 @@ function flushSyncCallbacks() {
|
|
|
6009
6008
|
return null;
|
|
6010
6009
|
}
|
|
6011
6010
|
|
|
6012
|
-
var ReactVersion = "18.0.0-rc.0-
|
|
6011
|
+
var ReactVersion = "18.0.0-rc.0-fe905f152-20220107";
|
|
6013
6012
|
|
|
6014
6013
|
var SCHEDULING_PROFILER_VERSION = 1;
|
|
6015
6014
|
|
|
@@ -20680,8 +20679,6 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
20680
20679
|
{
|
|
20681
20680
|
errorHydratingContainer(root.containerInfo);
|
|
20682
20681
|
}
|
|
20683
|
-
|
|
20684
|
-
clearContainer(root.containerInfo);
|
|
20685
20682
|
}
|
|
20686
20683
|
|
|
20687
20684
|
var exitStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<a896eacc9a9dcf1699836dec923115b1>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -1820,11 +1820,6 @@ function lanesToEventPriority(lanes) {
|
|
|
1820
1820
|
: 4
|
|
1821
1821
|
: 1;
|
|
1822
1822
|
}
|
|
1823
|
-
function shim() {
|
|
1824
|
-
throw Error(
|
|
1825
|
-
"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
|
|
1826
|
-
);
|
|
1827
|
-
}
|
|
1828
1823
|
function shim$1() {
|
|
1829
1824
|
throw Error(
|
|
1830
1825
|
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
|
@@ -6176,7 +6171,10 @@ function commitLayoutEffects(finishedWork) {
|
|
|
6176
6171
|
}
|
|
6177
6172
|
break;
|
|
6178
6173
|
case 5:
|
|
6179
|
-
null === current && firstChild.flags & 4
|
|
6174
|
+
if (null === current && firstChild.flags & 4)
|
|
6175
|
+
throw Error(
|
|
6176
|
+
"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
|
|
6177
|
+
);
|
|
6180
6178
|
break;
|
|
6181
6179
|
case 6:
|
|
6182
6180
|
break;
|
|
@@ -6564,7 +6562,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
6564
6562
|
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
6565
6563
|
var prevExecutionContext = executionContext;
|
|
6566
6564
|
executionContext |= 8;
|
|
6567
|
-
root.isDehydrated && (
|
|
6565
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
6568
6566
|
for (
|
|
6569
6567
|
var exitStatus, i = 0;
|
|
6570
6568
|
50 > i &&
|
|
@@ -8165,7 +8163,7 @@ var roots = new Map(),
|
|
|
8165
8163
|
devToolsConfig$jscomp$inline_925 = {
|
|
8166
8164
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8167
8165
|
bundleType: 0,
|
|
8168
|
-
version: "18.0.0-rc.0-
|
|
8166
|
+
version: "18.0.0-rc.0-fe905f152-20220107",
|
|
8169
8167
|
rendererPackageName: "react-native-renderer",
|
|
8170
8168
|
rendererConfig: {
|
|
8171
8169
|
getInspectorDataForViewTag: function() {
|
|
@@ -8207,7 +8205,7 @@ var internals$jscomp$inline_1178 = {
|
|
|
8207
8205
|
scheduleRoot: null,
|
|
8208
8206
|
setRefreshHandler: null,
|
|
8209
8207
|
getCurrentFiber: null,
|
|
8210
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8208
|
+
reconcilerVersion: "18.0.0-rc.0-fe905f152-20220107"
|
|
8211
8209
|
};
|
|
8212
8210
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8213
8211
|
var hook$jscomp$inline_1179 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<c99237d947c4c9b464cbc2fb01bfa5cc>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
@@ -1893,11 +1893,6 @@ function lanesToEventPriority(lanes) {
|
|
|
1893
1893
|
: 4
|
|
1894
1894
|
: 1;
|
|
1895
1895
|
}
|
|
1896
|
-
function shim() {
|
|
1897
|
-
throw Error(
|
|
1898
|
-
"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
|
|
1899
|
-
);
|
|
1900
|
-
}
|
|
1901
1896
|
function shim$1() {
|
|
1902
1897
|
throw Error(
|
|
1903
1898
|
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
|
@@ -6638,7 +6633,10 @@ function commitLayoutEffects(finishedWork, root, committedLanes) {
|
|
|
6638
6633
|
}
|
|
6639
6634
|
break;
|
|
6640
6635
|
case 5:
|
|
6641
|
-
null === current && committedLanes.flags & 4
|
|
6636
|
+
if (null === current && committedLanes.flags & 4)
|
|
6637
|
+
throw Error(
|
|
6638
|
+
"The current renderer does not support mutation. This error is likely caused by a bug in React. Please file an issue."
|
|
6639
|
+
);
|
|
6642
6640
|
break;
|
|
6643
6641
|
case 6:
|
|
6644
6642
|
break;
|
|
@@ -7087,7 +7085,7 @@ function performConcurrentWorkOnRoot(root, didTimeout) {
|
|
|
7087
7085
|
function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
7088
7086
|
var prevExecutionContext = executionContext;
|
|
7089
7087
|
executionContext |= 8;
|
|
7090
|
-
root.isDehydrated && (
|
|
7088
|
+
root.isDehydrated && (root.isDehydrated = !1);
|
|
7091
7089
|
for (
|
|
7092
7090
|
var exitStatus, i = 0;
|
|
7093
7091
|
50 > i &&
|
|
@@ -7610,7 +7608,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7610
7608
|
lanes = root.finishedLanes;
|
|
7611
7609
|
supportsUserTimingV3 &&
|
|
7612
7610
|
(markAndClear("--commit-start-" + lanes),
|
|
7613
|
-
markAndClear("--react-version-18.0.0-rc.0-
|
|
7611
|
+
markAndClear("--react-version-18.0.0-rc.0-fe905f152-20220107"),
|
|
7614
7612
|
markAndClear("--profiler-version-1"),
|
|
7615
7613
|
getLaneLabels(),
|
|
7616
7614
|
markAndClear("--react-lane-labels-" + laneLabels.join(",")),
|
|
@@ -8867,7 +8865,7 @@ var roots = new Map(),
|
|
|
8867
8865
|
devToolsConfig$jscomp$inline_1020 = {
|
|
8868
8866
|
findFiberByHostInstance: getInstanceFromInstance,
|
|
8869
8867
|
bundleType: 0,
|
|
8870
|
-
version: "18.0.0-rc.0-
|
|
8868
|
+
version: "18.0.0-rc.0-fe905f152-20220107",
|
|
8871
8869
|
rendererPackageName: "react-native-renderer",
|
|
8872
8870
|
rendererConfig: {
|
|
8873
8871
|
getInspectorDataForViewTag: function() {
|
|
@@ -8909,7 +8907,7 @@ var internals$jscomp$inline_1307 = {
|
|
|
8909
8907
|
scheduleRoot: null,
|
|
8910
8908
|
setRefreshHandler: null,
|
|
8911
8909
|
getCurrentFiber: null,
|
|
8912
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8910
|
+
reconcilerVersion: "18.0.0-rc.0-fe905f152-20220107"
|
|
8913
8911
|
};
|
|
8914
8912
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8915
8913
|
var hook$jscomp$inline_1308 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<6b9c0ba969139d6ee3eb09f15762393c>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
'use strict';
|
|
@@ -6242,7 +6242,7 @@ function flushSyncCallbacks() {
|
|
|
6242
6242
|
return null;
|
|
6243
6243
|
}
|
|
6244
6244
|
|
|
6245
|
-
var ReactVersion = "18.0.0-rc.0-
|
|
6245
|
+
var ReactVersion = "18.0.0-rc.0-fe905f152-20220107";
|
|
6246
6246
|
|
|
6247
6247
|
var SCHEDULING_PROFILER_VERSION = 1;
|
|
6248
6248
|
|
|
@@ -21095,8 +21095,6 @@ function recoverFromConcurrentError(root, errorRetryLanes) {
|
|
|
21095
21095
|
{
|
|
21096
21096
|
errorHydratingContainer(root.containerInfo);
|
|
21097
21097
|
}
|
|
21098
|
-
|
|
21099
|
-
clearContainer(root.containerInfo);
|
|
21100
21098
|
}
|
|
21101
21099
|
|
|
21102
21100
|
var exitStatus;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<4e71e92e72eaaf313f601217395e6d50>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
"use strict";
|
|
@@ -8252,7 +8252,7 @@ var roots = new Map(),
|
|
|
8252
8252
|
devToolsConfig$jscomp$inline_966 = {
|
|
8253
8253
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8254
8254
|
bundleType: 0,
|
|
8255
|
-
version: "18.0.0-rc.0-
|
|
8255
|
+
version: "18.0.0-rc.0-fe905f152-20220107",
|
|
8256
8256
|
rendererPackageName: "react-native-renderer",
|
|
8257
8257
|
rendererConfig: {
|
|
8258
8258
|
getInspectorDataForViewTag: function() {
|
|
@@ -8294,7 +8294,7 @@ var internals$jscomp$inline_1229 = {
|
|
|
8294
8294
|
scheduleRoot: null,
|
|
8295
8295
|
setRefreshHandler: null,
|
|
8296
8296
|
getCurrentFiber: null,
|
|
8297
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8297
|
+
reconcilerVersion: "18.0.0-rc.0-fe905f152-20220107"
|
|
8298
8298
|
};
|
|
8299
8299
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8300
8300
|
var hook$jscomp$inline_1230 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
3
3
|
*
|
|
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.
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* @noflow
|
|
8
8
|
* @nolint
|
|
9
9
|
* @preventMunge
|
|
10
|
-
* @generated SignedSource<<
|
|
10
|
+
* @generated SignedSource<<d4064fad3b33bb1c794350386dd674a4>>
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
|
|
@@ -7689,7 +7689,7 @@ function commitRootImpl(root, renderPriorityLevel) {
|
|
|
7689
7689
|
lanes = root.finishedLanes;
|
|
7690
7690
|
supportsUserTimingV3 &&
|
|
7691
7691
|
(markAndClear("--commit-start-" + lanes),
|
|
7692
|
-
markAndClear("--react-version-18.0.0-rc.0-
|
|
7692
|
+
markAndClear("--react-version-18.0.0-rc.0-fe905f152-20220107"),
|
|
7693
7693
|
markAndClear("--profiler-version-1"),
|
|
7694
7694
|
getLaneLabels(),
|
|
7695
7695
|
markAndClear("--react-lane-labels-" + laneLabels.join(",")),
|
|
@@ -8946,7 +8946,7 @@ var roots = new Map(),
|
|
|
8946
8946
|
devToolsConfig$jscomp$inline_1061 = {
|
|
8947
8947
|
findFiberByHostInstance: getInstanceFromTag,
|
|
8948
8948
|
bundleType: 0,
|
|
8949
|
-
version: "18.0.0-rc.0-
|
|
8949
|
+
version: "18.0.0-rc.0-fe905f152-20220107",
|
|
8950
8950
|
rendererPackageName: "react-native-renderer",
|
|
8951
8951
|
rendererConfig: {
|
|
8952
8952
|
getInspectorDataForViewTag: function() {
|
|
@@ -8988,7 +8988,7 @@ var internals$jscomp$inline_1358 = {
|
|
|
8988
8988
|
scheduleRoot: null,
|
|
8989
8989
|
setRefreshHandler: null,
|
|
8990
8990
|
getCurrentFiber: null,
|
|
8991
|
-
reconcilerVersion: "18.0.0-rc.0-
|
|
8991
|
+
reconcilerVersion: "18.0.0-rc.0-fe905f152-20220107"
|
|
8992
8992
|
};
|
|
8993
8993
|
if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
|
|
8994
8994
|
var hook$jscomp$inline_1359 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
|
package/React/Base/RCTVersion.m
CHANGED
|
@@ -24,7 +24,7 @@ NSDictionary* RCTGetReactNativeVersion(void)
|
|
|
24
24
|
RCTVersionMajor: @(0),
|
|
25
25
|
RCTVersionMinor: @(0),
|
|
26
26
|
RCTVersionPatch: @(0),
|
|
27
|
-
RCTVersionPrerelease: @"
|
|
27
|
+
RCTVersionPrerelease: @"20220111-2009-bd7caa64f",
|
|
28
28
|
};
|
|
29
29
|
});
|
|
30
30
|
return __rnVersion;
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
|
|
42
42
|
using namespace facebook::react;
|
|
43
43
|
|
|
44
|
+
// Allow JS runtime to register native components as needed. For static view configs.
|
|
44
45
|
void RCTInstallNativeComponentRegistryBinding(facebook::jsi::Runtime &runtime)
|
|
45
46
|
{
|
|
46
47
|
auto hasComponentProvider = [](std::string const &name) -> bool {
|
|
@@ -274,11 +274,11 @@ task installArchives {
|
|
|
274
274
|
|
|
275
275
|
android {
|
|
276
276
|
compileSdkVersion 31
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
277
|
+
|
|
278
|
+
// Used to override the NDK path & version on internal CI
|
|
279
|
+
if (System.getenv("ANDROID_NDK") != null && System.getenv("LOCAL_ANDROID_NDK_VERSION") != null) {
|
|
280
|
+
ndkPath System.getenv("ANDROID_NDK")
|
|
281
|
+
ndkVersion System.getenv("LOCAL_ANDROID_NDK_VERSION")
|
|
282
282
|
}
|
|
283
283
|
|
|
284
284
|
defaultConfig {
|
|
@@ -137,6 +137,21 @@ public abstract class BaseViewManager<T extends View, C extends LayoutShadowNode
|
|
|
137
137
|
ReactFindViewUtil.notifyViewRendered(view);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
+
@Override
|
|
141
|
+
@ReactProp(name = ViewProps.ACCESSIBILITY_LABELLED_BY)
|
|
142
|
+
public void setAccessibilityLabelledBy(@NonNull T view, @Nullable Dynamic nativeId) {
|
|
143
|
+
if (nativeId.isNull()) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
if (nativeId.getType() == ReadableType.String) {
|
|
147
|
+
view.setTag(R.id.labelled_by, nativeId.asString());
|
|
148
|
+
} else if (nativeId.getType() == ReadableType.Array) {
|
|
149
|
+
// On Android, this takes a single View as labeledBy. If an array is specified, set the first
|
|
150
|
+
// element in the tag.
|
|
151
|
+
view.setTag(R.id.labelled_by, nativeId.asArray().getString(0));
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
140
155
|
@Override
|
|
141
156
|
@ReactProp(name = ViewProps.ACCESSIBILITY_LABEL)
|
|
142
157
|
public void setAccessibilityLabel(@NonNull T view, @Nullable String accessibilityLabel) {
|
|
@@ -10,6 +10,7 @@ package com.facebook.react.uimanager;
|
|
|
10
10
|
import android.view.View;
|
|
11
11
|
import androidx.annotation.NonNull;
|
|
12
12
|
import androidx.annotation.Nullable;
|
|
13
|
+
import com.facebook.react.bridge.Dynamic;
|
|
13
14
|
import com.facebook.react.bridge.ReadableArray;
|
|
14
15
|
import com.facebook.react.bridge.ReadableMap;
|
|
15
16
|
|
|
@@ -64,6 +65,9 @@ public abstract class BaseViewManagerAdapter<T extends View>
|
|
|
64
65
|
@Override
|
|
65
66
|
public void setNativeId(@NonNull T view, String nativeId) {}
|
|
66
67
|
|
|
68
|
+
@Override
|
|
69
|
+
public void setAccessibilityLabelledBy(@NonNull T view, Dynamic nativeId) {}
|
|
70
|
+
|
|
67
71
|
@Override
|
|
68
72
|
public void setOpacity(@NonNull T view, float opacity) {}
|
|
69
73
|
|
package/ReactAndroid/src/main/java/com/facebook/react/uimanager/ReactAccessibilityDelegate.java
CHANGED
|
@@ -35,6 +35,7 @@ import com.facebook.react.bridge.UIManager;
|
|
|
35
35
|
import com.facebook.react.bridge.WritableMap;
|
|
36
36
|
import com.facebook.react.uimanager.events.Event;
|
|
37
37
|
import com.facebook.react.uimanager.events.EventDispatcher;
|
|
38
|
+
import com.facebook.react.uimanager.util.ReactFindViewUtil;
|
|
38
39
|
import java.util.HashMap;
|
|
39
40
|
|
|
40
41
|
/**
|
|
@@ -191,6 +192,8 @@ public class ReactAccessibilityDelegate extends AccessibilityDelegateCompat {
|
|
|
191
192
|
};
|
|
192
193
|
}
|
|
193
194
|
|
|
195
|
+
@Nullable View mAccessibilityLabelledBy;
|
|
196
|
+
|
|
194
197
|
@Override
|
|
195
198
|
public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfoCompat info) {
|
|
196
199
|
super.onInitializeAccessibilityNodeInfo(host, info);
|
|
@@ -200,6 +203,15 @@ public class ReactAccessibilityDelegate extends AccessibilityDelegateCompat {
|
|
|
200
203
|
setRole(info, accessibilityRole, host.getContext());
|
|
201
204
|
}
|
|
202
205
|
|
|
206
|
+
final Object accessibilityLabelledBy = host.getTag(R.id.labelled_by);
|
|
207
|
+
if (accessibilityLabelledBy != null) {
|
|
208
|
+
mAccessibilityLabelledBy =
|
|
209
|
+
ReactFindViewUtil.findView(host.getRootView(), (String) accessibilityLabelledBy);
|
|
210
|
+
if (mAccessibilityLabelledBy != null) {
|
|
211
|
+
info.setLabeledBy(mAccessibilityLabelledBy);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
|
|
203
215
|
// state is changeable.
|
|
204
216
|
final ReadableMap accessibilityState = (ReadableMap) host.getTag(R.id.accessibility_state);
|
|
205
217
|
if (accessibilityState != null) {
|
|
@@ -10,6 +10,7 @@ package com.facebook.react.uimanager;
|
|
|
10
10
|
import android.view.View;
|
|
11
11
|
import androidx.annotation.Nullable;
|
|
12
12
|
import com.facebook.react.bridge.ColorPropConverter;
|
|
13
|
+
import com.facebook.react.bridge.Dynamic;
|
|
13
14
|
import com.facebook.react.bridge.ReadableArray;
|
|
14
15
|
import com.facebook.react.bridge.ReadableMap;
|
|
15
16
|
import com.facebook.yoga.YogaConstants;
|
|
@@ -84,6 +85,9 @@ public abstract class BaseViewManagerDelegate<T extends View, U extends BaseView
|
|
|
84
85
|
case ViewProps.NATIVE_ID:
|
|
85
86
|
mViewManager.setNativeId(view, (String) value);
|
|
86
87
|
break;
|
|
88
|
+
case ViewProps.ACCESSIBILITY_LABELLED_BY:
|
|
89
|
+
mViewManager.setAccessibilityLabelledBy(view, (Dynamic) value);
|
|
90
|
+
break;
|
|
87
91
|
case ViewProps.OPACITY:
|
|
88
92
|
mViewManager.setOpacity(view, value == null ? 1.0f : ((Double) value).floatValue());
|
|
89
93
|
break;
|
|
@@ -9,6 +9,7 @@ package com.facebook.react.uimanager;
|
|
|
9
9
|
|
|
10
10
|
import android.view.View;
|
|
11
11
|
import androidx.annotation.Nullable;
|
|
12
|
+
import com.facebook.react.bridge.Dynamic;
|
|
12
13
|
import com.facebook.react.bridge.ReadableArray;
|
|
13
14
|
import com.facebook.react.bridge.ReadableMap;
|
|
14
15
|
|
|
@@ -49,6 +50,8 @@ public interface BaseViewManagerInterface<T extends View> {
|
|
|
49
50
|
|
|
50
51
|
void setNativeId(T view, @Nullable String nativeId);
|
|
51
52
|
|
|
53
|
+
void setAccessibilityLabelledBy(T view, @Nullable Dynamic nativeId);
|
|
54
|
+
|
|
52
55
|
void setOpacity(T view, float opacity);
|
|
53
56
|
|
|
54
57
|
void setRenderToHardwareTexture(T view, boolean useHWTexture);
|
|
@@ -152,6 +152,7 @@ public class ViewProps {
|
|
|
152
152
|
public static final String ACCESSIBILITY_STATE = "accessibilityState";
|
|
153
153
|
public static final String ACCESSIBILITY_ACTIONS = "accessibilityActions";
|
|
154
154
|
public static final String ACCESSIBILITY_VALUE = "accessibilityValue";
|
|
155
|
+
public static final String ACCESSIBILITY_LABELLED_BY = "accessibilityLabelledBy";
|
|
155
156
|
public static final String IMPORTANT_FOR_ACCESSIBILITY = "importantForAccessibility";
|
|
156
157
|
|
|
157
158
|
// DEPRECATED
|
package/ReactAndroid/src/main/java/com/facebook/react/views/drawer/ReactDrawerLayoutManager.java
CHANGED
|
@@ -154,12 +154,15 @@ public class ReactDrawerLayoutManager extends ViewGroupManager<ReactDrawerLayout
|
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
@Override
|
|
157
|
+
@ReactProp(name = "keyboardDismissMode")
|
|
157
158
|
public void setKeyboardDismissMode(ReactDrawerLayout view, @Nullable String value) {}
|
|
158
159
|
|
|
159
160
|
@Override
|
|
161
|
+
@ReactProp(name = "drawerBackgroundColor", customType = "Color")
|
|
160
162
|
public void setDrawerBackgroundColor(ReactDrawerLayout view, @Nullable Integer value) {}
|
|
161
163
|
|
|
162
164
|
@Override
|
|
165
|
+
@ReactProp(name = "statusBarBackgroundColor", customType = "Color")
|
|
163
166
|
public void setStatusBarBackgroundColor(ReactDrawerLayout view, @Nullable Integer value) {}
|
|
164
167
|
|
|
165
168
|
@Override
|
|
@@ -44,6 +44,7 @@ public class ReactProgressBarViewManager
|
|
|
44
44
|
private final WeakHashMap<Integer, Pair<Integer, Integer>> mMeasuredStyles = new WeakHashMap<>();
|
|
45
45
|
|
|
46
46
|
/* package */ static final String PROP_STYLE = "styleAttr";
|
|
47
|
+
/* package */ static final String PROP_ATTR = "typeAttr";
|
|
47
48
|
/* package */ static final String PROP_INDETERMINATE = "indeterminate";
|
|
48
49
|
/* package */ static final String PROP_PROGRESS = "progress";
|
|
49
50
|
/* package */ static final String PROP_ANIMATING = "animating";
|
|
@@ -115,6 +116,7 @@ public class ReactProgressBarViewManager
|
|
|
115
116
|
}
|
|
116
117
|
|
|
117
118
|
@Override
|
|
119
|
+
@ReactProp(name = PROP_ATTR)
|
|
118
120
|
public void setTypeAttr(ProgressBarContainerView view, @Nullable String value) {}
|
|
119
121
|
|
|
120
122
|
@Override
|
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
<!--tag is used to store accessibilityValue tag -->
|
|
28
28
|
<item type="id" name="accessibility_value"/>
|
|
29
29
|
|
|
30
|
+
<!--tag is used to store accessibilityLabelledBy tag -->
|
|
31
|
+
<item type="id" name="labelled_by"/>
|
|
32
|
+
|
|
30
33
|
<!-- tag is used to store if a view is subscribed to the pointerenter event -->
|
|
31
34
|
<item type="id" name="pointer_enter"/>
|
|
32
35
|
|
|
@@ -18,7 +18,7 @@ constexpr struct {
|
|
|
18
18
|
int32_t Major = 0;
|
|
19
19
|
int32_t Minor = 0;
|
|
20
20
|
int32_t Patch = 0;
|
|
21
|
-
std::string_view Prerelease = "
|
|
21
|
+
std::string_view Prerelease = "20220111-2009-bd7caa64f";
|
|
22
22
|
} ReactNativeVersion;
|
|
23
23
|
|
|
24
24
|
} // namespace facebook::react
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2618edcf011971ece84607422875044a
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
6ffaed2080a1b0852b1cb30fd9f46a4192a5b91f
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
4736bd266d84c6ae620cfabb580104751c4ea46c2b5a7f12b34814d0cb94051d
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d4ea51bad955f5649fa43f421a26965bed3cdc77f876f266dbcf13280ff2925d3295097aea5cd05c1e1cda8f3d7d207bb45523fde96c9f0b62904fe4808e3773
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"component": {
|
|
4
4
|
"group": "com.facebook.react",
|
|
5
5
|
"module": "react-native",
|
|
6
|
-
"version": "0.0.0-
|
|
6
|
+
"version": "0.0.0-20220111-2009-bd7caa64f",
|
|
7
7
|
"attributes": {
|
|
8
8
|
"org.gradle.status": "release"
|
|
9
9
|
}
|
|
@@ -131,13 +131,13 @@
|
|
|
131
131
|
],
|
|
132
132
|
"files": [
|
|
133
133
|
{
|
|
134
|
-
"name": "react-native-0.0.0-
|
|
135
|
-
"url": "react-native-0.0.0-
|
|
136
|
-
"size":
|
|
137
|
-
"sha512": "
|
|
138
|
-
"sha256": "
|
|
139
|
-
"sha1": "
|
|
140
|
-
"md5": "
|
|
134
|
+
"name": "react-native-0.0.0-20220111-2009-bd7caa64f.aar",
|
|
135
|
+
"url": "react-native-0.0.0-20220111-2009-bd7caa64f.aar",
|
|
136
|
+
"size": 32631880,
|
|
137
|
+
"sha512": "d4ea51bad955f5649fa43f421a26965bed3cdc77f876f266dbcf13280ff2925d3295097aea5cd05c1e1cda8f3d7d207bb45523fde96c9f0b62904fe4808e3773",
|
|
138
|
+
"sha256": "4736bd266d84c6ae620cfabb580104751c4ea46c2b5a7f12b34814d0cb94051d",
|
|
139
|
+
"sha1": "6ffaed2080a1b0852b1cb30fd9f46a4192a5b91f",
|
|
140
|
+
"md5": "2618edcf011971ece84607422875044a"
|
|
141
141
|
}
|
|
142
142
|
]
|
|
143
143
|
},
|
|
@@ -258,13 +258,13 @@
|
|
|
258
258
|
],
|
|
259
259
|
"files": [
|
|
260
260
|
{
|
|
261
|
-
"name": "react-native-0.0.0-
|
|
262
|
-
"url": "react-native-0.0.0-
|
|
263
|
-
"size":
|
|
264
|
-
"sha512": "
|
|
265
|
-
"sha256": "
|
|
266
|
-
"sha1": "
|
|
267
|
-
"md5": "
|
|
261
|
+
"name": "react-native-0.0.0-20220111-2009-bd7caa64f.aar",
|
|
262
|
+
"url": "react-native-0.0.0-20220111-2009-bd7caa64f.aar",
|
|
263
|
+
"size": 32631880,
|
|
264
|
+
"sha512": "d4ea51bad955f5649fa43f421a26965bed3cdc77f876f266dbcf13280ff2925d3295097aea5cd05c1e1cda8f3d7d207bb45523fde96c9f0b62904fe4808e3773",
|
|
265
|
+
"sha256": "4736bd266d84c6ae620cfabb580104751c4ea46c2b5a7f12b34814d0cb94051d",
|
|
266
|
+
"sha1": "6ffaed2080a1b0852b1cb30fd9f46a4192a5b91f",
|
|
267
|
+
"md5": "2618edcf011971ece84607422875044a"
|
|
268
268
|
}
|
|
269
269
|
]
|
|
270
270
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
53139454d107e8626c6e7b7cf12e9182
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
5d27abcafe73b986a4ec55919cc3a5c6ac629322
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
184c9ad986c595185f21f4be5ea6b7721c1dd6de7503270ff9e872d2b715c122
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
cc22717bbd6f096527a72d036b35606f4f012c2d92e76e0983164e970fc6d3e4374a89ae4e7665456f271c4f5ec18b9613c031288616b5a4f28bf5da4fe2e20d
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<modelVersion>4.0.0</modelVersion>
|
|
10
10
|
<groupId>com.facebook.react</groupId>
|
|
11
11
|
<artifactId>react-native</artifactId>
|
|
12
|
-
<version>0.0.0-
|
|
12
|
+
<version>0.0.0-20220111-2009-bd7caa64f</version>
|
|
13
13
|
<packaging>aar</packaging>
|
|
14
14
|
<name>ReactNative</name>
|
|
15
15
|
<description>A framework for building native apps with React</description>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
c86f2d9ce2d47f8a31733feaa7e6c394
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
71c25af9280f8f60ebfd9f00b26c444c13e135b6
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
d8a2a47cf21d40696dba33aa697166c3f88797d846ab5961459f7558650063c9
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3809bd7fde722ca55e836f02f3030d2c5268c4877f809cdc108c7c1e2bfe9dfa2c78cff5b617c9e326d5c265358c965e77621ef84ec4c42195c7873283da46b4
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
<groupId>com.facebook.react</groupId>
|
|
4
4
|
<artifactId>react-native</artifactId>
|
|
5
5
|
<versioning>
|
|
6
|
-
<latest>0.0.0-
|
|
7
|
-
<release>0.0.0-
|
|
6
|
+
<latest>0.0.0-20220111-2009-bd7caa64f</latest>
|
|
7
|
+
<release>0.0.0-20220111-2009-bd7caa64f</release>
|
|
8
8
|
<versions>
|
|
9
|
-
<version>0.0.0-
|
|
9
|
+
<version>0.0.0-20220111-2009-bd7caa64f</version>
|
|
10
10
|
</versions>
|
|
11
|
-
<lastUpdated>
|
|
11
|
+
<lastUpdated>20220111201528</lastUpdated>
|
|
12
12
|
</versioning>
|
|
13
13
|
</metadata>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2ff6a29af152f68c68683afc27ed6f8a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
dcf297dd4c6f8981c38e700300e4659075928eab
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
86a08d67cc6fbb784bc4de0f7a3e4b9c4c19e034a58467e5eed1ddc0ae8eb239
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
312da1ec5d367fa84256b7ea21b4a25a2e43619e2e002dae60fd88c7abd585b4cdfc5ae1bbe34d89324be6979bb4a3060560cfe485f14cbf3fbb785e6c4f5173
|
package/package.json
CHANGED
package/template/Gemfile.lock
CHANGED
|
@@ -14,7 +14,7 @@ buildscript {
|
|
|
14
14
|
}
|
|
15
15
|
dependencies {
|
|
16
16
|
classpath("com.android.tools.build:gradle:7.0.4")
|
|
17
|
-
classpath("com.facebook.react:react")
|
|
17
|
+
classpath("com.facebook.react:react-native-gradle-plugin")
|
|
18
18
|
classpath("de.undercouch:gradle-download-task:4.1.2")
|
|
19
19
|
// NOTE: Do not place your application dependencies here; they belong
|
|
20
20
|
// in the individual module build.gradle files
|
|
@@ -1,11 +1,7 @@
|
|
|
1
1
|
rootProject.name = 'HelloWorld'
|
|
2
2
|
apply from: file("../node_modules/@react-native-community/cli-platform-android/native_modules.gradle"); applyNativeModulesSettingsGradle(settings)
|
|
3
3
|
include ':app'
|
|
4
|
-
includeBuild('../node_modules/react-native-gradle-plugin')
|
|
5
|
-
dependencySubstitution {
|
|
6
|
-
substitute(module("com.facebook.react:react")).using(project(":"))
|
|
7
|
-
}
|
|
8
|
-
}
|
|
4
|
+
includeBuild('../node_modules/react-native-gradle-plugin')
|
|
9
5
|
|
|
10
6
|
if (settings.hasProperty("newArchEnabled") && settings.newArchEnabled == "true") {
|
|
11
7
|
include(":ReactAndroid")
|
package/template/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
91aef857569592b2450b3ed60b70ae8e
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2a98e67a6750fb0baca957a0fe3d530b9c03ce9a
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
818d990b490622c08fecf117fc20fb8e913a214cfd1c6729fad61536d8e48bf9
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
9ccec3444ba7f3c20e2966715226dd1ebf52a611f0ed6433cf72e8e3a31dc43a6953aa24f704e996638a433a11ea0271723e40b535fd90874c42aa0f790e1440
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b0ac5c213994e2bfb146153823aef8c0
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ab72aa534020408ed6bacf65254496719d5b0a82
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e65a6e7c03672a83bb63951a1c635726519d35d1612f51601a23cb822da76464
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ae83a1d63281d730e253a06fd4101315165474010f0c39aa792c8b1d9b72895a8143e13915c9b39b0629a0aab906dd48fe532bcbebca108961a80733e42f47c2
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
b2a99a65b9797f17b5a15aece6448573
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
bc1846d46bdf3230d88bf480fa002a3bba270022
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
af774a43b201bf7c844d06df841ec20e1880f4543e56c026dee3107244ed5981
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
e643a9a1bcaf7afe6b64dda0de3144a15e568300b6533182e12b2ba6384705c76fdb6765b51f82845bb94b385bb7fc9ac142b967cf4775cb56b6804cfd30b2bb
|