react-native-windows 0.0.0-canary.433 → 0.0.0-canary.437

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.
Files changed (48) hide show
  1. package/.flowconfig +1 -1
  2. package/Libraries/Animated/nodes/AnimatedValue.js +8 -2
  3. package/Libraries/Components/ScrollView/ScrollView.js +8 -1
  4. package/Libraries/Components/ScrollView/ScrollViewNativeComponent.js +1 -0
  5. package/Libraries/Components/ScrollView/ScrollViewNativeComponentType.js +1 -0
  6. package/Libraries/Components/ScrollView/ScrollViewViewConfig.js +1 -0
  7. package/Libraries/Components/TextInput/TextInput.js +30 -0
  8. package/Libraries/Components/TextInput/TextInput.windows.js +30 -0
  9. package/Libraries/Core/ReactNativeVersion.js +1 -1
  10. package/Libraries/Image/Image.android.js +1 -1
  11. package/Libraries/Image/Image.ios.js +1 -1
  12. package/Libraries/Image/Image.windows.js +1 -1
  13. package/Libraries/Image/TextInlineImageNativeComponent.js +1 -1
  14. package/Libraries/Pressability/HoverState.js +4 -0
  15. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +28 -28
  16. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +22 -33
  17. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +23 -34
  18. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +35 -28
  19. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +22 -33
  20. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +23 -34
  21. package/Microsoft.ReactNative/ABIViewManager.cpp +4 -0
  22. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.cpp +2 -2
  23. package/Microsoft.ReactNative/Fabric/FabricUIManagerModule.h +2 -2
  24. package/Microsoft.ReactNative/Microsoft.ReactNative.vcxproj +2 -0
  25. package/Microsoft.ReactNative/Modules/Animated/AnimationDriver.cpp +2 -3
  26. package/Microsoft.ReactNative/Modules/Animated/CalculatedAnimationDriver.cpp +3 -3
  27. package/Microsoft.ReactNative/Modules/Animated/DiffClampAnimatedNode.cpp +1 -1
  28. package/Microsoft.ReactNative/Modules/Animated/DivisionAnimatedNode.cpp +2 -2
  29. package/Microsoft.ReactNative/Modules/Animated/FrameAnimationDriver.cpp +1 -1
  30. package/Microsoft.ReactNative/Views/RawTextViewManager.cpp +1 -0
  31. package/Microsoft.ReactNative/Views/TextInputViewManager.cpp +13 -0
  32. package/Microsoft.ReactNative/Views/TextViewManager.cpp +11 -0
  33. package/Microsoft.ReactNative/Views/TextViewManager.h +1 -0
  34. package/Microsoft.ReactNative/Views/ViewManagerBase.cpp +5 -9
  35. package/Microsoft.ReactNative/Views/ViewManagerBase.h +1 -0
  36. package/Microsoft.ReactNative/Views/VirtualTextViewManager.cpp +11 -0
  37. package/Microsoft.ReactNative/Views/VirtualTextViewManager.h +2 -0
  38. package/Microsoft.ReactNative/XamlView.cpp +3 -10
  39. package/Microsoft.ReactNative/XamlView.h +1 -2
  40. package/PropertySheets/Generated/PackageVersion.g.props +1 -1
  41. package/README.md +1 -1
  42. package/Scripts/OfficeReact.Win32.nuspec +2 -1
  43. package/Scripts/Tfs/Layout-MSRN-Headers.ps1 +3 -0
  44. package/Shared/Shared.vcxitems +0 -1
  45. package/Shared/Shared.vcxitems.filters +0 -3
  46. package/package.json +8 -8
  47. package/rntypes/index.d.ts +1 -1
  48. package/Shared/IUIManager.h +0 -90
package/.flowconfig CHANGED
@@ -121,4 +121,4 @@ untyped-import
121
121
  untyped-type-import
122
122
 
123
123
  [version]
124
- ^0.165.0
124
+ ^0.167.1
@@ -100,7 +100,7 @@ class AnimatedValue extends AnimatedWithChildren {
100
100
  __detach() {
101
101
  if (this.__isNative) {
102
102
  NativeAnimatedAPI.getValue(this.__getNativeTag(), value => {
103
- this._value = value;
103
+ this._value = value - this._offset;
104
104
  });
105
105
  }
106
106
  this.stopAnimation();
@@ -186,7 +186,13 @@ class AnimatedValue extends AnimatedWithChildren {
186
186
  this.stopTracking();
187
187
  this._animation && this._animation.stop();
188
188
  this._animation = null;
189
- callback && callback(this.__getValue());
189
+ if (callback) {
190
+ if (this.__isNative) {
191
+ NativeAnimatedAPI.getValue(this.__getNativeTag(), callback);
192
+ } else {
193
+ callback(this.__getValue());
194
+ }
195
+ }
190
196
  }
191
197
 
192
198
  /**
@@ -161,6 +161,7 @@ export type ScrollViewImperativeMethods = $ReadOnly<{|
161
161
  >,
162
162
  |}>;
163
163
 
164
+ export type DecelerationRateType = 'fast' | 'normal' | number;
164
165
  export type ScrollResponderType = ScrollViewImperativeMethods;
165
166
 
166
167
  type IOSProps = $ReadOnly<{|
@@ -171,6 +172,12 @@ type IOSProps = $ReadOnly<{|
171
172
  * @platform ios
172
173
  */
173
174
  automaticallyAdjustContentInsets?: ?boolean,
175
+ /**
176
+ * Controls whether the ScrollView should automatically adjust it's contentInset
177
+ * and scrollViewInsets when the Keyboard changes it's size. The default value is false.
178
+ * @platform ios
179
+ */
180
+ automaticallyAdjustKeyboardInsets?: ?boolean,
174
181
  /**
175
182
  * Controls whether iOS should automatically adjust the scroll indicator
176
183
  * insets. The default value is true. Available on iOS 13 and later.
@@ -467,7 +474,7 @@ export type Props = $ReadOnly<{|
467
474
  * - `'normal'`: 0.998 on iOS, 0.985 on Android (the default)
468
475
  * - `'fast'`: 0.99 on iOS, 0.9 on Android
469
476
  */
470
- decelerationRate?: ?('fast' | 'normal' | number),
477
+ decelerationRate?: ?DecelerationRateType,
471
478
  /**
472
479
  * When true, the scroll view's children are arranged horizontally in a row
473
480
  * instead of vertically in a column. The default value is false.
@@ -25,6 +25,7 @@ const ScrollViewNativeComponent: HostComponent<Props> =
25
25
  alwaysBounceHorizontal: true,
26
26
  alwaysBounceVertical: true,
27
27
  automaticallyAdjustContentInsets: true,
28
+ automaticallyAdjustKeyboardInsets: true,
28
29
  automaticallyAdjustsScrollIndicatorInsets: true,
29
30
  bounces: true,
30
31
  bouncesZoom: true,
@@ -21,6 +21,7 @@ export type ScrollViewNativeProps = $ReadOnly<{
21
21
  alwaysBounceHorizontal?: ?boolean,
22
22
  alwaysBounceVertical?: ?boolean,
23
23
  automaticallyAdjustContentInsets?: ?boolean,
24
+ automaticallyAdjustKeyboardInsets?: ?boolean,
24
25
  automaticallyAdjustsScrollIndicatorInsets?: ?boolean,
25
26
  bounces?: ?boolean,
26
27
  bouncesZoom?: ?boolean,
@@ -24,6 +24,7 @@ const ScrollViewViewConfig = {
24
24
  alwaysBounceHorizontal: true,
25
25
  alwaysBounceVertical: true,
26
26
  automaticallyAdjustContentInsets: true,
27
+ automaticallyAdjustKeyboardInsets: true,
27
28
  automaticallyAdjustsScrollIndicatorInsets: true,
28
29
  bounces: true,
29
30
  bouncesZoom: true,
@@ -632,6 +632,21 @@ export type Props = $ReadOnly<{|
632
632
  */
633
633
  onKeyPress?: ?(e: KeyPressEvent) => mixed,
634
634
 
635
+ /**
636
+ * DANGER: this API is not stable and will change in the future.
637
+ *
638
+ * Callback will be called on the main thread and may result in dropped frames.
639
+ *
640
+ * Callback that is called when a key is pressed.
641
+ * This will be called with `{ nativeEvent: { key: keyValue } }`
642
+ * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and
643
+ * the typed-in character otherwise including `' '` for space.
644
+ * Fires before `onChange` callbacks.
645
+ *
646
+ * Only available in Fabric on iOS.
647
+ */
648
+ unstable_onKeyPressSync?: ?(e: KeyPressEvent) => mixed,
649
+
635
650
  /**
636
651
  * Called when a touch is engaged.
637
652
  */
@@ -766,6 +781,7 @@ type ImperativeMethods = $ReadOnly<{|
766
781
  clear: () => void,
767
782
  isFocused: () => boolean,
768
783
  getNativeRef: () => ?React.ElementRef<HostComponent<mixed>>,
784
+ setSelection: (start: number, end: number) => void,
769
785
  |}>;
770
786
 
771
787
  const emptyFunctionThatReturnsTrue = () => true;
@@ -1009,6 +1025,18 @@ function InternalTextInput(props: Props): React.Node {
1009
1025
  }
1010
1026
  }
1011
1027
 
1028
+ function setSelection(start: number, end: number): void {
1029
+ if (inputRef.current != null) {
1030
+ viewCommands.setTextAndSelection(
1031
+ inputRef.current,
1032
+ mostRecentEventCount,
1033
+ null,
1034
+ start,
1035
+ end,
1036
+ );
1037
+ }
1038
+ }
1039
+
1012
1040
  // TODO: Fix this returning true on null === null, when no input is focused
1013
1041
  function isFocused(): boolean {
1014
1042
  return TextInputState.currentlyFocusedInput() === inputRef.current;
@@ -1049,6 +1077,7 @@ function InternalTextInput(props: Props): React.Node {
1049
1077
  ref.clear = clear;
1050
1078
  ref.isFocused = isFocused;
1051
1079
  ref.getNativeRef = getNativeRef;
1080
+ ref.setSelection = setSelection;
1052
1081
  }
1053
1082
  },
1054
1083
  });
@@ -1170,6 +1199,7 @@ function InternalTextInput(props: Props): React.Node {
1170
1199
  focusable={focusable}
1171
1200
  mostRecentEventCount={mostRecentEventCount}
1172
1201
  onBlur={_onBlur}
1202
+ onKeyPressSync={props.unstable_onKeyPressSync}
1173
1203
  onChange={_onChange}
1174
1204
  onContentSizeChange={props.onContentSizeChange}
1175
1205
  onFocus={_onFocus}
@@ -670,6 +670,21 @@ export type Props = $ReadOnly<{|
670
670
  */
671
671
  onKeyPress?: ?(e: KeyPressEvent) => mixed,
672
672
 
673
+ /**
674
+ * DANGER: this API is not stable and will change in the future.
675
+ *
676
+ * Callback will be called on the main thread and may result in dropped frames.
677
+ *
678
+ * Callback that is called when a key is pressed.
679
+ * This will be called with `{ nativeEvent: { key: keyValue } }`
680
+ * where `keyValue` is `'Enter'` or `'Backspace'` for respective keys and
681
+ * the typed-in character otherwise including `' '` for space.
682
+ * Fires before `onChange` callbacks.
683
+ *
684
+ * Only available in Fabric on iOS.
685
+ */
686
+ unstable_onKeyPressSync?: ?(e: KeyPressEvent) => mixed,
687
+
673
688
  /**
674
689
  * Called when a touch is engaged.
675
690
  */
@@ -804,6 +819,7 @@ type ImperativeMethods = $ReadOnly<{|
804
819
  clear: () => void,
805
820
  isFocused: () => boolean,
806
821
  getNativeRef: () => ?React.ElementRef<HostComponent<mixed>>,
822
+ setSelection: (start: number, end: number) => void,
807
823
  |}>;
808
824
 
809
825
  const emptyFunctionThatReturnsTrue = () => true;
@@ -1053,6 +1069,18 @@ function InternalTextInput(props: Props): React.Node {
1053
1069
  }
1054
1070
  }
1055
1071
 
1072
+ function setSelection(start: number, end: number): void {
1073
+ if (inputRef.current != null) {
1074
+ viewCommands.setTextAndSelection(
1075
+ inputRef.current,
1076
+ mostRecentEventCount,
1077
+ null,
1078
+ start,
1079
+ end,
1080
+ );
1081
+ }
1082
+ }
1083
+
1056
1084
  // TODO: Fix this returning true on null === null, when no input is focused
1057
1085
  function isFocused(): boolean {
1058
1086
  return TextInputState.currentlyFocusedInput() === inputRef.current;
@@ -1093,6 +1121,7 @@ function InternalTextInput(props: Props): React.Node {
1093
1121
  ref.clear = clear;
1094
1122
  ref.isFocused = isFocused;
1095
1123
  ref.getNativeRef = getNativeRef;
1124
+ ref.setSelection = setSelection;
1096
1125
  }
1097
1126
  },
1098
1127
  });
@@ -1261,6 +1290,7 @@ function InternalTextInput(props: Props): React.Node {
1261
1290
  focusable={focusable}
1262
1291
  mostRecentEventCount={mostRecentEventCount}
1263
1292
  onBlur={_onBlur}
1293
+ onKeyPressSync={props.unstable_onKeyPressSync}
1264
1294
  onChange={_onChange}
1265
1295
  onContentSizeChange={props.onContentSizeChange}
1266
1296
  onFocus={_onFocus}
@@ -13,5 +13,5 @@ exports.version = {
13
13
  major: 0,
14
14
  minor: 0,
15
15
  patch: 0,
16
- prerelease: '20211202-2008-9e2ec4d3d',
16
+ prerelease: '20211217-2008-aef843bfe',
17
17
  };
@@ -106,7 +106,7 @@ async function queryCache(
106
106
  return await NativeImageLoaderAndroid.queryCache(urls);
107
107
  }
108
108
 
109
- type ImageComponentStatics = $ReadOnly<{|
109
+ export type ImageComponentStatics = $ReadOnly<{|
110
110
  getSize: typeof getSize,
111
111
  getSizeWithHeaders: typeof getSizeWithHeaders,
112
112
  prefetch: typeof prefetch,
@@ -86,7 +86,7 @@ async function queryCache(
86
86
  return await NativeImageLoaderIOS.queryCache(urls);
87
87
  }
88
88
 
89
- type ImageComponentStatics = $ReadOnly<{|
89
+ export type ImageComponentStatics = $ReadOnly<{|
90
90
  getSize: typeof getSize,
91
91
  getSizeWithHeaders: typeof getSizeWithHeaders,
92
92
  prefetch: typeof prefetch,
@@ -89,7 +89,7 @@ async function queryCache(
89
89
  return await NativeImageLoaderIOS.queryCache(urls);
90
90
  }
91
91
 
92
- type ImageComponentStatics = $ReadOnly<{|
92
+ export type ImageComponentStatics = $ReadOnly<{|
93
93
  getSize: typeof getSize,
94
94
  getSizeWithHeaders: typeof getSizeWithHeaders,
95
95
  prefetch: typeof prefetch,
@@ -41,7 +41,7 @@ type Props = $ReadOnly<{
41
41
 
42
42
  const TextInlineImage: HostComponent<Props> =
43
43
  NativeComponentRegistry.get<Props>('RCTTextInlineImage', () => ({
44
- uiViewClassName: 'RCTImageView',
44
+ uiViewClassName: 'RCTTextInlineImage',
45
45
  bubblingEventTypes: {},
46
46
  directEventTypes: {
47
47
  topLoadStart: {
@@ -49,6 +49,10 @@ if (Platform.OS === 'web') {
49
49
  document.addEventListener('touchmove', disableHover, true);
50
50
  document.addEventListener('mousemove', enableHover, true);
51
51
  }
52
+ // [Windows
53
+ } else if (Platform.OS === 'windows') {
54
+ isEnabled = true;
55
+ // Windows]
52
56
  }
53
57
 
54
58
  export function isHoverEnabled(): boolean {
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<c63c5718d1b40bee38ff92020247d874>>
10
+ * @generated SignedSource<<4b47cfe3313108f4cdeb2cfc4dfea2e5>>
11
11
  */
12
12
 
13
13
  'use strict';
@@ -156,7 +156,7 @@ var invokeGuardedCallbackImpl = invokeGuardedCallbackProd;
156
156
  // when we call document.createEvent(). However this can cause confusing
157
157
  // errors: https://github.com/facebook/create-react-app/issues/3482
158
158
  // So we preemptively throw with a better message instead.
159
- if (typeof document === "undefined") {
159
+ if (typeof document === "undefined" || document === null) {
160
160
  throw new Error(
161
161
  "The `document` global was defined when React was initialized, but is not " +
162
162
  "defined anymore. This can happen in a test environment if a component " +
@@ -2868,6 +2868,7 @@ var enableProfilerCommitHooks = true;
2868
2868
  var enableLazyElements = false;
2869
2869
  var warnAboutStringRefs = false;
2870
2870
  var warnOnSubscriptionInsideStartTransition = false;
2871
+ var enableSuspenseAvoidThisFallback = false;
2871
2872
  var enableNewReconciler = false;
2872
2873
  var enableLazyContextPropagation = false;
2873
2874
 
@@ -6008,7 +6009,7 @@ function flushSyncCallbacks() {
6008
6009
  return null;
6009
6010
  }
6010
6011
 
6011
- var ReactVersion = "18.0.0-c1220ebdd-20211123";
6012
+ var ReactVersion = "18.0.0-rc.0-a049aa015-20211213";
6012
6013
 
6013
6014
  var SCHEDULING_PROFILER_VERSION = 1;
6014
6015
 
@@ -10448,16 +10449,9 @@ function shouldCaptureSuspense(workInProgress, hasInvisibleParent) {
10448
10449
 
10449
10450
  var props = workInProgress.memoizedProps; // Regular boundaries always capture.
10450
10451
 
10451
- if (props.unstable_avoidThisFallback !== true) {
10452
+ {
10452
10453
  return true;
10453
10454
  } // If it's a boundary we should avoid, then we prefer to bubble up to the
10454
- // parent boundary if it is currently invisible.
10455
-
10456
- if (hasInvisibleParent) {
10457
- return false;
10458
- } // If the parent is not able to handle it, we must handle it.
10459
-
10460
- return true;
10461
10455
  }
10462
10456
  function findFirstSuspended(row) {
10463
10457
  var node = row;
@@ -12206,12 +12200,19 @@ function getIsUpdatingOpaqueValueInRenderPhaseInDEV() {
12206
12200
 
12207
12201
  function mountId() {
12208
12202
  var hook = mountWorkInProgressHook();
12203
+ var root = getWorkInProgressRoot(); // TODO: In Fizz, id generation is specific to each server config. Maybe we
12204
+ // should do this in Fiber, too? Deferring this decision for now because
12205
+ // there's no other place to store the prefix except for an internal field on
12206
+ // the public createRoot object, which the fiber tree does not currently have
12207
+ // a reference to.
12208
+
12209
+ var identifierPrefix = root.identifierPrefix;
12209
12210
  var id;
12210
12211
 
12211
12212
  {
12212
12213
  // Use a lowercase r prefix for client-generated ids.
12213
12214
  var globalClientId = globalClientIdCounter++;
12214
- id = "r:" + globalClientId.toString(32);
12215
+ id = identifierPrefix + "r:" + globalClientId.toString(32);
12215
12216
  }
12216
12217
 
12217
12218
  hook.memoizedState = id;
@@ -13742,16 +13743,9 @@ function resetSuspendedComponent(sourceFiber, rootRenderLanes) {
13742
13743
 
13743
13744
  function getNearestSuspenseBoundaryToCapture(returnFiber) {
13744
13745
  var node = returnFiber;
13745
- var hasInvisibleParentBoundary = hasSuspenseContext(
13746
- suspenseStackCursor.current,
13747
- InvisibleParentSuspenseContext
13748
- );
13749
13746
 
13750
13747
  do {
13751
- if (
13752
- node.tag === SuspenseComponent &&
13753
- shouldCaptureSuspense(node, hasInvisibleParentBoundary)
13754
- ) {
13748
+ if (node.tag === SuspenseComponent && shouldCaptureSuspense(node)) {
13755
13749
  return node;
13756
13750
  } // This boundary already captured during this render. Continue to the next
13757
13751
  // boundary.
@@ -14743,7 +14737,8 @@ function completeWork(current, workInProgress, renderLanes) {
14743
14737
  // should be able to immediately restart from within throwException.
14744
14738
  var hasInvisibleChildContext =
14745
14739
  current === null &&
14746
- workInProgress.memoizedProps.unstable_avoidThisFallback !== true;
14740
+ (workInProgress.memoizedProps.unstable_avoidThisFallback !== true ||
14741
+ !enableSuspenseAvoidThisFallback);
14747
14742
 
14748
14743
  if (
14749
14744
  hasInvisibleChildContext ||
@@ -16566,7 +16561,7 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
16566
16561
  // Mark this subtree context as having at least one invisible parent that could
16567
16562
  // handle the fallback state.
16568
16563
  // Avoided boundaries are not considered since they cannot handle preferred fallback states.
16569
- if (nextProps.unstable_avoidThisFallback !== true) {
16564
+ {
16570
16565
  suspenseContext = addSubtreeSuspenseContext(
16571
16566
  suspenseContext,
16572
16567
  InvisibleParentSuspenseContext
@@ -23531,7 +23526,7 @@ function assignFiberPropertiesInDEV(target, source) {
23531
23526
  return target;
23532
23527
  }
23533
23528
 
23534
- function FiberRootNode(containerInfo, tag, hydrate) {
23529
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
23535
23530
  this.tag = tag;
23536
23531
  this.containerInfo = containerInfo;
23537
23532
  this.pendingChildren = null;
@@ -23554,6 +23549,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
23554
23549
  this.finishedLanes = NoLanes;
23555
23550
  this.entangledLanes = NoLanes;
23556
23551
  this.entanglements = createLaneMap(NoLanes);
23552
+ this.identifierPrefix = identifierPrefix;
23557
23553
 
23558
23554
  {
23559
23555
  this.effectDuration = 0;
@@ -23588,9 +23584,10 @@ function createFiberRoot(
23588
23584
  hydrate,
23589
23585
  hydrationCallbacks,
23590
23586
  isStrictMode,
23591
- concurrentUpdatesByDefaultOverride
23587
+ concurrentUpdatesByDefaultOverride,
23588
+ identifierPrefix
23592
23589
  ) {
23593
- var root = new FiberRootNode(containerInfo, tag, hydrate);
23590
+ var root = new FiberRootNode(containerInfo, tag, hydrate, identifierPrefix);
23594
23591
  // stateNode is any.
23595
23592
 
23596
23593
  var uninitializedFiber = createHostRootFiber(
@@ -23737,7 +23734,8 @@ function createContainer(
23737
23734
  hydrate,
23738
23735
  hydrationCallbacks,
23739
23736
  isStrictMode,
23740
- concurrentUpdatesByDefaultOverride
23737
+ concurrentUpdatesByDefaultOverride,
23738
+ identifierPrefix
23741
23739
  ) {
23742
23740
  return createFiberRoot(
23743
23741
  containerInfo,
@@ -23745,7 +23743,8 @@ function createContainer(
23745
23743
  hydrate,
23746
23744
  hydrationCallbacks,
23747
23745
  isStrictMode,
23748
- concurrentUpdatesByDefaultOverride
23746
+ concurrentUpdatesByDefaultOverride,
23747
+ identifierPrefix
23749
23748
  );
23750
23749
  }
23751
23750
  function updateContainer(element, container, parentComponent, callback) {
@@ -24539,7 +24538,8 @@ function render(element, containerTag, callback, concurrentRoot) {
24539
24538
  false,
24540
24539
  null,
24541
24540
  false,
24542
- null
24541
+ null,
24542
+ ""
24543
24543
  );
24544
24544
  roots.set(containerTag, root);
24545
24545
  }
@@ -7,7 +7,7 @@
7
7
  * @noflow
8
8
  * @nolint
9
9
  * @preventMunge
10
- * @generated SignedSource<<d2675ef49da99531a7fa8940f853bd5f>>
10
+ * @generated SignedSource<<91162956144e0110fdc5f76b4de6f80e>>
11
11
  */
12
12
 
13
13
  "use strict";
@@ -4076,9 +4076,11 @@ var ContextOnlyDispatcher = {
4076
4076
  },
4077
4077
  useSyncExternalStore: mountSyncExternalStore,
4078
4078
  useId: function() {
4079
- var hook = mountWorkInProgressHook();
4080
- var id = "r:" + (globalClientIdCounter++).toString(32);
4081
- return (hook.memoizedState = id);
4079
+ var hook = mountWorkInProgressHook(),
4080
+ identifierPrefix = workInProgressRoot.identifierPrefix,
4081
+ globalClientId = globalClientIdCounter++;
4082
+ identifierPrefix = identifierPrefix + "r:" + globalClientId.toString(32);
4083
+ return (hook.memoizedState = identifierPrefix);
4082
4084
  },
4083
4085
  unstable_isNewReconciler: !1
4084
4086
  },
@@ -4620,11 +4622,7 @@ function completeWork(current, workInProgress, renderLanes) {
4620
4622
  !renderLanes &&
4621
4623
  ((workInProgress.child.flags |= 8192), 0 !== (workInProgress.mode & 1))
4622
4624
  )
4623
- if (
4624
- (null === current &&
4625
- !0 !== workInProgress.memoizedProps.unstable_avoidThisFallback) ||
4626
- 0 !== (suspenseStackCursor.current & 1)
4627
- )
4625
+ if (null === current || 0 !== (suspenseStackCursor.current & 1))
4628
4626
  0 === workInProgressRootExitStatus &&
4629
4627
  (workInProgressRootExitStatus = 3);
4630
4628
  else {
@@ -5321,11 +5319,9 @@ function updateSuspenseComponent(current, workInProgress, renderLanes) {
5321
5319
  null !== current && null === current.memoizedState
5322
5320
  ? !1
5323
5321
  : 0 !== (suspenseContext & 2));
5324
- JSCompiler_temp
5325
- ? ((showFallback = !0), (workInProgress.flags &= -129))
5326
- : (null !== current && null === current.memoizedState) ||
5327
- !0 === nextProps.unstable_avoidThisFallback ||
5328
- (suspenseContext |= 1);
5322
+ if (JSCompiler_temp) (showFallback = !0), (workInProgress.flags &= -129);
5323
+ else if (null === current || null !== current.memoizedState)
5324
+ suspenseContext |= 1;
5329
5325
  push(suspenseStackCursor, suspenseContext & 1);
5330
5326
  if (null === current) {
5331
5327
  current = nextProps.children;
@@ -6782,8 +6778,6 @@ function handleError(root$jscomp$0, thrownValue) {
6782
6778
  }
6783
6779
  b: {
6784
6780
  sourceFiber$jscomp$0 = returnFiber;
6785
- var hasInvisibleParentBoundary =
6786
- 0 !== (suspenseStackCursor.current & 1);
6787
6781
  do {
6788
6782
  var JSCompiler_temp;
6789
6783
  if ((JSCompiler_temp = 13 === sourceFiber$jscomp$0.tag)) {
@@ -6793,12 +6787,6 @@ function handleError(root$jscomp$0, thrownValue) {
6793
6787
  ? null !== nextState.dehydrated
6794
6788
  ? !0
6795
6789
  : !1
6796
- : !0 !==
6797
- sourceFiber$jscomp$0.memoizedProps
6798
- .unstable_avoidThisFallback
6799
- ? !0
6800
- : hasInvisibleParentBoundary
6801
- ? !1
6802
6790
  : !0;
6803
6791
  }
6804
6792
  if (JSCompiler_temp) {
@@ -7957,7 +7945,7 @@ function createFiberFromPortal(portal, mode, lanes) {
7957
7945
  };
7958
7946
  return mode;
7959
7947
  }
7960
- function FiberRootNode(containerInfo, tag, hydrate) {
7948
+ function FiberRootNode(containerInfo, tag, hydrate, identifierPrefix) {
7961
7949
  this.tag = tag;
7962
7950
  this.containerInfo = containerInfo;
7963
7951
  this.finishedWork = this.pingCache = this.current = this.pendingChildren = null;
@@ -7970,6 +7958,7 @@ function FiberRootNode(containerInfo, tag, hydrate) {
7970
7958
  this.expirationTimes = createLaneMap(-1);
7971
7959
  this.entangledLanes = this.finishedLanes = this.mutableReadLanes = this.expiredLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0;
7972
7960
  this.entanglements = createLaneMap(0);
7961
+ this.identifierPrefix = identifierPrefix;
7973
7962
  }
7974
7963
  function createPortal(children, containerInfo, implementation) {
7975
7964
  var key =
@@ -8176,7 +8165,7 @@ var roots = new Map(),
8176
8165
  devToolsConfig$jscomp$inline_925 = {
8177
8166
  findFiberByHostInstance: getInstanceFromInstance,
8178
8167
  bundleType: 0,
8179
- version: "18.0.0-c1220ebdd-20211123",
8168
+ version: "18.0.0-rc.0-a049aa015-20211213",
8180
8169
  rendererPackageName: "react-native-renderer",
8181
8170
  rendererConfig: {
8182
8171
  getInspectorDataForViewTag: function() {
@@ -8191,7 +8180,7 @@ var roots = new Map(),
8191
8180
  }.bind(null, findNodeHandle)
8192
8181
  }
8193
8182
  };
8194
- var internals$jscomp$inline_1179 = {
8183
+ var internals$jscomp$inline_1178 = {
8195
8184
  bundleType: devToolsConfig$jscomp$inline_925.bundleType,
8196
8185
  version: devToolsConfig$jscomp$inline_925.version,
8197
8186
  rendererPackageName: devToolsConfig$jscomp$inline_925.rendererPackageName,
@@ -8218,19 +8207,19 @@ var internals$jscomp$inline_1179 = {
8218
8207
  scheduleRoot: null,
8219
8208
  setRefreshHandler: null,
8220
8209
  getCurrentFiber: null,
8221
- reconcilerVersion: "18.0.0-c1220ebdd-20211123"
8210
+ reconcilerVersion: "18.0.0-rc.0-a049aa015-20211213"
8222
8211
  };
8223
8212
  if ("undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__) {
8224
- var hook$jscomp$inline_1180 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8213
+ var hook$jscomp$inline_1179 = __REACT_DEVTOOLS_GLOBAL_HOOK__;
8225
8214
  if (
8226
- !hook$jscomp$inline_1180.isDisabled &&
8227
- hook$jscomp$inline_1180.supportsFiber
8215
+ !hook$jscomp$inline_1179.isDisabled &&
8216
+ hook$jscomp$inline_1179.supportsFiber
8228
8217
  )
8229
8218
  try {
8230
- (rendererID = hook$jscomp$inline_1180.inject(
8231
- internals$jscomp$inline_1179
8219
+ (rendererID = hook$jscomp$inline_1179.inject(
8220
+ internals$jscomp$inline_1178
8232
8221
  )),
8233
- (injectedHook = hook$jscomp$inline_1180);
8222
+ (injectedHook = hook$jscomp$inline_1179);
8234
8223
  } catch (err) {}
8235
8224
  }
8236
8225
  exports.createPortal = function(children, containerTag) {
@@ -8270,7 +8259,7 @@ exports.render = function(element, containerTag, callback, concurrentRoot) {
8270
8259
  var root = roots.get(containerTag);
8271
8260
  root ||
8272
8261
  ((root = concurrentRoot ? 1 : 0),
8273
- (concurrentRoot = new FiberRootNode(containerTag, root, !1)),
8262
+ (concurrentRoot = new FiberRootNode(containerTag, root, !1, "")),
8274
8263
  (root = createFiber(3, null, null, 1 === root ? 1 : 0)),
8275
8264
  (concurrentRoot.current = root),
8276
8265
  (root.stateNode = concurrentRoot),