mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
React sync for revisions 3ff2c7c...6bf5e85
Summary: @public This sync includes the following changes: - **[6bf5e8598](https://github.com/facebook/react/commit/6bf5e8598)**: Fix scheduler setTimeout() re-entrancy check (#14384) //<Brian Vaughn>// - **[7a48c900b](https://github.com/facebook/react/commit/7a48c900b)**: Prevent a v8 deopt when profiling (#14383) //<Brian Vaughn>// - **[f00c2755b](https://github.com/facebook/react/commit/f00c2755b)**: Removed unnecessary externals from Jest bundles (#14372) //<Brian Vaughn>// - **[52bea95cf](https://github.com/facebook/react/commit/52bea95cf)**: Fixed scheduler setTimeout fallback (#14358) //<Brian Vaughn>// - **[1d25aa578](https://github.com/facebook/react/commit/1d25aa578)**: [Fizz] New Server Rendering Infra (#14144) //<Sebastian Markbåge>// - **[f1bf28160](https://github.com/facebook/react/commit/f1bf28160)**: Fix bug in cloneHook (#14364) //<Imre Osswald>// - **[16e120438](https://github.com/facebook/react/commit/16e120438)**: [Fire] Add initial build infrastructure (#14359) //<Dan Abramov>// - **[d14ba87b1](https://github.com/facebook/react/commit/d14ba87b1)**: Validate propTypes for lazy() and memo() and warn about invalid patterns (#14298) //<Dan Abramov>// - **[4f964f09c](https://github.com/facebook/react/commit/4f964f09c)**: Adding isMemo check to react-is package (#14313) //<Jinto Jose>// - **[c2a2d8a53](https://github.com/facebook/react/commit/c2a2d8a53)**: Remove useMutationEffect (#14336) //<Sophie Alpert>// - **[48f1e5b3c](https://github.com/facebook/react/commit/48f1e5b3c)**: Add a null type test for memo (#14325) //<chun shang>// - **[f93f3402f](https://github.com/facebook/react/commit/f93f3402f)**: Make useEffect(async) warning more verbose (#14327) //<Dan Abramov>// - **[ee3ef3a07](https://github.com/facebook/react/commit/ee3ef3a07)**: Fix regression: Errors not emitted in streams (#14314) //<Pelle Wessman>// - **[33f6f5e53](https://github.com/facebook/react/commit/33f6f5e53)**: Remove usage of `fbjs/lib/invariant` in ReactNativeViewConfigRegistry. (#14330) //<Christoph Nakazawa>// - **[686f1060a](https://github.com/facebook/react/commit/686f1060a)**: Publish a local release (canary or stable) to NPM (#14260) //<Brian Vaughn>// - **[7475120ce](https://github.com/facebook/react/commit/7475120ce)**: Prevent deopts from modifying exports object in stable builds (#14309) //<Dan Abramov>// - **[0c7189d92](https://github.com/facebook/react/commit/0c7189d92)**: Fix resolution of outer props with React.memo() (#14312) //<Dan Abramov>// - **[14be29b2b](https://github.com/facebook/react/commit/14be29b2b)**: Add more test coverage for nested memo() (#14311) //<Dan Abramov>// - **[dc0dd4bbf](https://github.com/facebook/react/commit/dc0dd4bbf)**: Use |0 to coerce to number (#14297) //<Dan Abramov>// - **[dd8205cef](https://github.com/facebook/react/commit/dd8205cef)**: List ignored types instead of included types in the stack (#14308) //<Dan Abramov>// - **[a9fdf8a32](https://github.com/facebook/react/commit/a9fdf8a32)**: Warn about reassigning this.props (#14277) //<Dan Abramov>// - **[327cf0ee3](https://github.com/facebook/react/commit/327cf0ee3)**: Fix support for mixing react-dom/server@16.6 and react@<16.6 (#14291) //<Dan Abramov>// - **[c954efa70](https://github.com/facebook/react/commit/c954efa70)**: Remove `import * as` pattern from the codebase (#14282) //<Sebastian Markbåge>// - **[ccb14e270](https://github.com/facebook/react/commit/ccb14e270)**: Fix SSR useCallback in render phase (#14279) //<Dan Abramov>// - **[0e9cb3f5d](https://github.com/facebook/react/commit/0e9cb3f5d)**: Clear fields on unmount of fiber to avoid memory leak (#14276) //<Dominic Gannaway>// - **[592676503](https://github.com/facebook/react/commit/592676503)**: Revert "Clear memoizedState on unmount of fiber to avoid memory leak (#14218)" (#14275) //<Dominic Gannaway>// - **[9b2fb24f9](https://github.com/facebook/react/commit/9b2fb24f9)**: Clear memoizedState on unmount of fiber to avoid memory leak (#14218) //<Dominic Gannaway>// - **[a22fabc2a](https://github.com/facebook/react/commit/a22fabc2a)**: Reduce scheduler serialization overhead (#14249) //<Jason Miller>// - **[21d5f7d32](https://github.com/facebook/react/commit/21d5f7d32)**: Wrap shorthand CSS property collision warning in feature flag (#14245) //<Andrew Clark>// - **[8feeed10d](https://github.com/facebook/react/commit/8feeed10d)**: [scheduler] Remove window.postMessage fallback //<Andrew Clark>// - **[5bce0ef10](https://github.com/facebook/react/commit/5bce0ef10)**: [scheduler] Post to MessageChannel instead of window (#14234) //<Andrew Clark>// - **[f55795c8e](https://github.com/facebook/react/commit/f55795c8e)**: Add regression test for #14188 (#14197) //<Dan Abramov>// - **[b98adb648](https://github.com/facebook/react/commit/b98adb648)**: Simplify CSS shorthand property warning (#14183) //<Sophie Alpert>// - **[f8bfd5868](https://github.com/facebook/react/commit/f8bfd5868)**: fix typo //<Sebastian Markbage>// - **[961eb65b4](https://github.com/facebook/react/commit/961eb65b4)**: Use unique thread ID for each partial render to access Context (#14182) //<Sebastian Markbåge>// - **[1a6ab1e9b](https://github.com/facebook/react/commit/1a6ab1e9b)**: SimpleMemoComponent should warn if a ref is given (#14178) //<Sophie Alpert>// - **[8ae867e6b](https://github.com/facebook/react/commit/8ae867e6b)**: Warn about conflicting style values during updates (#14181) //<Sophie Alpert>// - **[d5e1bf07d](https://github.com/facebook/react/commit/d5e1bf07d)**: Renamed outdated schedule/tracing referecnes (#14177) //<Brian Vaughn>// - **[2dd4ba11e](https://github.com/facebook/react/commit/2dd4ba11e)**: ESlint -> ESLint //<Andrew Clark>// - **[9cc631a53](https://github.com/facebook/react/commit/9cc631a53)**: Don't run danger on bad build (#14143) //<Sophie Alpert>// - **[1034e26fe](https://github.com/facebook/react/commit/1034e26fe)**: Fix typos (#14124) //<Heaven>// - **[5618da49d](https://github.com/facebook/react/commit/5618da49d)**: Fix comment typo (#14156) //<Bartosz Gordon>// - **[9fb919945](https://github.com/facebook/react/commit/9fb919945)**: Add global to ESLint plugin bundle config //<Andrew Clark>// - **[c174f8592](https://github.com/facebook/react/commit/c174f8592)**: Add fb build of ESLint plugin (#14165) //<Andrew Clark>// - **[02e4848e3](https://github.com/facebook/react/commit/02e4848e3)**: Improved suspense support in ReactDOMServer (#14161) //<Alex Taylor>// - **[4b163fee1](https://github.com/facebook/react/commit/4b163fee1)**: Remove errant return assignment (#14164) //<Andrew Clark>// - **[e58ecda9a](https://github.com/facebook/react/commit/e58ecda9a)**: Suspense fuzz tester (#14147) //<Andrew Clark>// - **[7fd1661f8](https://github.com/facebook/react/commit/7fd1661f8)**: Don't warn if an unmounted component is pinged (#14158) //<Andrew Clark>// - **[f9e9913f0](https://github.com/facebook/react/commit/f9e9913f0)**: [Synchronous Suspense] Don't delete children of suspended component (#14157) //<Andrew Clark>// - **[7c560131b](https://github.com/facebook/react/commit/7c560131b)**: Adding logger pri (#14155) //<Nathan Schloss>// - **[3d8bda70e](https://github.com/facebook/react/commit/3d8bda70e)**: Refactor ESLint configuration to enable better IDE integration (#13914) //<Minh Nguyen>// - **[051272f20](https://github.com/facebook/react/commit/051272f20)**: Use Entry in `yarn build ...` Instead of Label (#14148) //<Sebastian Markbåge>// Release Notes: [GENERAL] [FEATURE] [React] - React sync for revisions 3ff2c7c...6bf5e85 Reviewed By: bvaughn Differential Revision: D13288288 fbshipit-source-id: 89a4837a9198c53fc79306933f589ef25d8bb4b6
This commit is contained in:
committed by
Lorenzo Sciandra
parent
95ef88237f
commit
8d1d47abdb
@@ -1 +1 @@
|
||||
3ff2c7ccd4d174786aed0f16cc0dd784816ae977
|
||||
6bf5e859860938b8cb7153ee928c01ad45656969
|
||||
File diff suppressed because it is too large
Load Diff
@@ -956,10 +956,6 @@ var eventTypes$1 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
customBubblingEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes,
|
||||
customDirectEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes,
|
||||
ReactNativeBridgeEventPlugin = {
|
||||
eventTypes: ReactNativeViewConfigRegistry.eventTypes,
|
||||
extractEvents: function(
|
||||
@@ -969,8 +965,10 @@ var eventTypes$1 = {
|
||||
nativeEventTarget
|
||||
) {
|
||||
if (null == targetInst) return null;
|
||||
var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType],
|
||||
directDispatchConfig = customDirectEventTypes$1[topLevelType];
|
||||
var bubbleDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes[topLevelType],
|
||||
directDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes[topLevelType];
|
||||
invariant(
|
||||
bubbleDispatchConfig || directDispatchConfig,
|
||||
'Unsupported top level event type "%s" dispatched',
|
||||
@@ -1505,7 +1503,7 @@ function dispatchEvent(target, topLevelType, nativeEvent) {
|
||||
function shim$1() {
|
||||
invariant(
|
||||
!1,
|
||||
"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."
|
||||
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
var nextReactTag = 2;
|
||||
@@ -1619,17 +1617,19 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
var info = "";
|
||||
do {
|
||||
a: switch (workInProgress.tag) {
|
||||
case 2:
|
||||
case 16:
|
||||
case 0:
|
||||
case 1:
|
||||
case 5:
|
||||
case 8:
|
||||
case 13:
|
||||
case 3:
|
||||
case 4:
|
||||
case 6:
|
||||
case 7:
|
||||
case 10:
|
||||
case 9:
|
||||
var JSCompiler_inline_result = "";
|
||||
break a;
|
||||
default:
|
||||
var owner = workInProgress._debugOwner,
|
||||
source = workInProgress._debugSource,
|
||||
name = getComponentName(workInProgress.type);
|
||||
var JSCompiler_inline_result = null;
|
||||
JSCompiler_inline_result = null;
|
||||
owner && (JSCompiler_inline_result = getComponentName(owner.type));
|
||||
owner = name;
|
||||
name = "";
|
||||
@@ -1643,9 +1643,6 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
: JSCompiler_inline_result &&
|
||||
(name = " (created by " + JSCompiler_inline_result + ")");
|
||||
JSCompiler_inline_result = "\n in " + (owner || "Unknown") + name;
|
||||
break a;
|
||||
default:
|
||||
JSCompiler_inline_result = "";
|
||||
}
|
||||
info += JSCompiler_inline_result;
|
||||
workInProgress = workInProgress.return;
|
||||
@@ -3379,7 +3376,8 @@ function updateMemoComponent(
|
||||
"function" === typeof type &&
|
||||
!shouldConstruct(type) &&
|
||||
void 0 === type.defaultProps &&
|
||||
null === Component.compare
|
||||
null === Component.compare &&
|
||||
void 0 === Component.defaultProps
|
||||
)
|
||||
return (
|
||||
(workInProgress.tag = 15),
|
||||
@@ -3817,7 +3815,6 @@ function updateSuspenseComponent(
|
||||
nextDidTimeout
|
||||
? ((renderExpirationTime = nextProps.fallback),
|
||||
(nextProps = createWorkInProgress(mode, mode.pendingProps, 0)),
|
||||
(nextProps.effectTag |= 2),
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
((nextDidTimeout =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -3830,7 +3827,6 @@ function updateSuspenseComponent(
|
||||
renderExpirationTime,
|
||||
current$$1.expirationTime
|
||||
)),
|
||||
(mode.effectTag |= 2),
|
||||
(renderExpirationTime = nextProps),
|
||||
(nextProps.childExpirationTime = 0),
|
||||
(renderExpirationTime.return = mode.return = workInProgress))
|
||||
@@ -3844,9 +3840,7 @@ function updateSuspenseComponent(
|
||||
nextDidTimeout
|
||||
? ((nextDidTimeout = nextProps.fallback),
|
||||
(nextProps = createFiberFromFragment(null, mode, 0, null)),
|
||||
(nextProps.effectTag |= 2),
|
||||
(nextProps.child = current$$1),
|
||||
(current$$1.return = nextProps),
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
(nextProps.child =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -4082,8 +4076,9 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
default:
|
||||
invariant(
|
||||
!1,
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.",
|
||||
current$$1
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Lazy element type must resolve to a class or function.%s",
|
||||
current$$1,
|
||||
""
|
||||
);
|
||||
}
|
||||
return getDerivedStateFromProps;
|
||||
@@ -4390,9 +4385,10 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
return (
|
||||
(context = workInProgress.type),
|
||||
(hasContext = resolveDefaultProps(
|
||||
context.type,
|
||||
context,
|
||||
workInProgress.pendingProps
|
||||
)),
|
||||
(hasContext = resolveDefaultProps(context.type, hasContext)),
|
||||
updateMemoComponent(
|
||||
current$$1,
|
||||
workInProgress,
|
||||
@@ -4979,20 +4975,22 @@ function completeUnitOfWork(workInProgress) {
|
||||
break a;
|
||||
}
|
||||
instance = null !== instance;
|
||||
viewConfig = null !== current && null !== current.memoizedState;
|
||||
renderExpirationTime =
|
||||
null !== current && null !== current.memoizedState;
|
||||
null !== current &&
|
||||
!instance &&
|
||||
viewConfig &&
|
||||
renderExpirationTime &&
|
||||
((current = current.child.sibling),
|
||||
null !== current &&
|
||||
reconcileChildFibers(
|
||||
current$$1,
|
||||
current,
|
||||
null,
|
||||
renderExpirationTime
|
||||
));
|
||||
((viewConfig = current$$1.firstEffect),
|
||||
null !== viewConfig
|
||||
? ((current$$1.firstEffect = current),
|
||||
(current.nextEffect = viewConfig))
|
||||
: ((current$$1.firstEffect = current$$1.lastEffect = current),
|
||||
(current.nextEffect = null)),
|
||||
(current.effectTag = 8)));
|
||||
if (
|
||||
instance !== viewConfig ||
|
||||
instance !== renderExpirationTime ||
|
||||
(0 === (current$$1.effectTag & 1) && instance)
|
||||
)
|
||||
current$$1.effectTag |= 4;
|
||||
@@ -5183,14 +5181,7 @@ function renderRoot(root$jscomp$0, isYieldy) {
|
||||
thenable.then(returnFiber$jscomp$0, returnFiber$jscomp$0);
|
||||
if (0 === (value.mode & 1)) {
|
||||
value.effectTag |= 64;
|
||||
reconcileChildren(
|
||||
sourceFiber$jscomp$0.alternate,
|
||||
sourceFiber$jscomp$0,
|
||||
null,
|
||||
returnFiber
|
||||
);
|
||||
sourceFiber$jscomp$0.effectTag &= -1025;
|
||||
sourceFiber$jscomp$0.effectTag &= -933;
|
||||
sourceFiber$jscomp$0.effectTag &= -1957;
|
||||
1 === sourceFiber$jscomp$0.tag &&
|
||||
null === sourceFiber$jscomp$0.alternate &&
|
||||
(sourceFiber$jscomp$0.tag = 17);
|
||||
@@ -5447,7 +5438,7 @@ function scheduleWorkToRoot(fiber, expirationTime) {
|
||||
}
|
||||
node = node.return;
|
||||
}
|
||||
return null === root ? null : root;
|
||||
return root;
|
||||
}
|
||||
function scheduleWork(fiber, expirationTime) {
|
||||
fiber = scheduleWorkToRoot(fiber, expirationTime);
|
||||
@@ -5944,9 +5935,14 @@ function completeRoot$1(root, finishedWork$jscomp$0, expirationTime) {
|
||||
}
|
||||
prevState.return = null;
|
||||
prevState.child = null;
|
||||
prevState.alternate &&
|
||||
((prevState.alternate.child = null),
|
||||
(prevState.alternate.return = null));
|
||||
prevState.memoizedState = null;
|
||||
prevState.updateQueue = null;
|
||||
var alternate = prevState.alternate;
|
||||
null !== alternate &&
|
||||
((alternate.return = null),
|
||||
(alternate.child = null),
|
||||
(alternate.memoizedState = null),
|
||||
(alternate.updateQueue = null));
|
||||
}
|
||||
nextEffect = nextEffect.nextEffect;
|
||||
}
|
||||
@@ -6101,7 +6097,7 @@ function onUncaughtError(error) {
|
||||
nextFlushedRoot.expirationTime = 0;
|
||||
hasUnhandledError || ((hasUnhandledError = !0), (unhandledError = error));
|
||||
}
|
||||
function findHostInstance$1(component) {
|
||||
function findHostInstance(component) {
|
||||
var fiber = component._reactInternalFiber;
|
||||
void 0 === fiber &&
|
||||
("function" === typeof component.render
|
||||
@@ -6214,7 +6210,7 @@ function findNodeHandle(componentOrHandle) {
|
||||
if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;
|
||||
if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)
|
||||
return componentOrHandle.canonical._nativeTag;
|
||||
componentOrHandle = findHostInstance$1(componentOrHandle);
|
||||
componentOrHandle = findHostInstance(componentOrHandle);
|
||||
return null == componentOrHandle
|
||||
? componentOrHandle
|
||||
: componentOrHandle.canonical
|
||||
@@ -6310,7 +6306,7 @@ var roots = new Map(),
|
||||
};
|
||||
return ReactNativeComponent;
|
||||
})(React.Component);
|
||||
})(findNodeHandle, findHostInstance$1),
|
||||
})(findNodeHandle, findHostInstance),
|
||||
findNodeHandle: findNodeHandle,
|
||||
render: function(element, containerTag, callback) {
|
||||
var root = roots.get(containerTag);
|
||||
@@ -6418,7 +6414,7 @@ var roots = new Map(),
|
||||
TextInputState.blurTextInput(findNodeHandle(this));
|
||||
}
|
||||
};
|
||||
})(findNodeHandle, findHostInstance$1)
|
||||
})(findNodeHandle, findHostInstance)
|
||||
}
|
||||
};
|
||||
(function(devToolsConfig) {
|
||||
|
||||
@@ -957,10 +957,6 @@ var eventTypes$1 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
customBubblingEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes,
|
||||
customDirectEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes,
|
||||
ReactNativeBridgeEventPlugin = {
|
||||
eventTypes: ReactNativeViewConfigRegistry.eventTypes,
|
||||
extractEvents: function(
|
||||
@@ -970,8 +966,10 @@ var eventTypes$1 = {
|
||||
nativeEventTarget
|
||||
) {
|
||||
if (null == targetInst) return null;
|
||||
var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType],
|
||||
directDispatchConfig = customDirectEventTypes$1[topLevelType];
|
||||
var bubbleDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes[topLevelType],
|
||||
directDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes[topLevelType];
|
||||
invariant(
|
||||
bubbleDispatchConfig || directDispatchConfig,
|
||||
'Unsupported top level event type "%s" dispatched',
|
||||
@@ -1506,7 +1504,7 @@ function dispatchEvent(target, topLevelType, nativeEvent) {
|
||||
function shim$1() {
|
||||
invariant(
|
||||
!1,
|
||||
"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."
|
||||
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
var nextReactTag = 2;
|
||||
@@ -1620,17 +1618,19 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
var info = "";
|
||||
do {
|
||||
a: switch (workInProgress.tag) {
|
||||
case 2:
|
||||
case 16:
|
||||
case 0:
|
||||
case 1:
|
||||
case 5:
|
||||
case 8:
|
||||
case 13:
|
||||
case 3:
|
||||
case 4:
|
||||
case 6:
|
||||
case 7:
|
||||
case 10:
|
||||
case 9:
|
||||
var JSCompiler_inline_result = "";
|
||||
break a;
|
||||
default:
|
||||
var owner = workInProgress._debugOwner,
|
||||
source = workInProgress._debugSource,
|
||||
name = getComponentName(workInProgress.type);
|
||||
var JSCompiler_inline_result = null;
|
||||
JSCompiler_inline_result = null;
|
||||
owner && (JSCompiler_inline_result = getComponentName(owner.type));
|
||||
owner = name;
|
||||
name = "";
|
||||
@@ -1644,9 +1644,6 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
: JSCompiler_inline_result &&
|
||||
(name = " (created by " + JSCompiler_inline_result + ")");
|
||||
JSCompiler_inline_result = "\n in " + (owner || "Unknown") + name;
|
||||
break a;
|
||||
default:
|
||||
JSCompiler_inline_result = "";
|
||||
}
|
||||
info += JSCompiler_inline_result;
|
||||
workInProgress = workInProgress.return;
|
||||
@@ -3437,7 +3434,8 @@ function updateMemoComponent(
|
||||
"function" === typeof type &&
|
||||
!shouldConstruct(type) &&
|
||||
void 0 === type.defaultProps &&
|
||||
null === Component.compare
|
||||
null === Component.compare &&
|
||||
void 0 === Component.defaultProps
|
||||
)
|
||||
return (
|
||||
(workInProgress.tag = 15),
|
||||
@@ -3885,7 +3883,6 @@ function updateSuspenseComponent(
|
||||
current$$1.pendingProps,
|
||||
0
|
||||
);
|
||||
renderExpirationTime.effectTag |= 2;
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
((nextDidTimeout =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -3905,7 +3902,6 @@ function updateSuspenseComponent(
|
||||
nextProps,
|
||||
mode.expirationTime
|
||||
);
|
||||
nextProps.effectTag |= 2;
|
||||
mode = renderExpirationTime;
|
||||
renderExpirationTime.childExpirationTime = 0;
|
||||
renderExpirationTime = nextProps;
|
||||
@@ -3920,9 +3916,7 @@ function updateSuspenseComponent(
|
||||
else if (((current$$1 = current$$1.child), nextDidTimeout)) {
|
||||
nextDidTimeout = nextProps.fallback;
|
||||
nextProps = createFiberFromFragment(null, mode, 0, null);
|
||||
nextProps.effectTag |= 2;
|
||||
nextProps.child = current$$1;
|
||||
current$$1.return = nextProps;
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
(nextProps.child =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -4170,8 +4164,9 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
default:
|
||||
invariant(
|
||||
!1,
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.",
|
||||
current$$1
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Lazy element type must resolve to a class or function.%s",
|
||||
current$$1,
|
||||
""
|
||||
);
|
||||
}
|
||||
return getDerivedStateFromProps;
|
||||
@@ -4479,9 +4474,10 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
return (
|
||||
(context = workInProgress.type),
|
||||
(hasContext = resolveDefaultProps(
|
||||
context.type,
|
||||
context,
|
||||
workInProgress.pendingProps
|
||||
)),
|
||||
(hasContext = resolveDefaultProps(context.type, hasContext)),
|
||||
updateMemoComponent(
|
||||
current$$1,
|
||||
workInProgress,
|
||||
@@ -4906,14 +4902,7 @@ function throwException(
|
||||
thenable.then(returnFiber, returnFiber);
|
||||
if (0 === (value.mode & 1)) {
|
||||
value.effectTag |= 64;
|
||||
reconcileChildren(
|
||||
sourceFiber.alternate,
|
||||
sourceFiber,
|
||||
null,
|
||||
renderExpirationTime
|
||||
);
|
||||
sourceFiber.effectTag &= -1025;
|
||||
sourceFiber.effectTag &= -933;
|
||||
sourceFiber.effectTag &= -1957;
|
||||
1 === sourceFiber.tag &&
|
||||
null === sourceFiber.alternate &&
|
||||
(sourceFiber.tag = 17);
|
||||
@@ -5033,7 +5022,7 @@ var DispatcherWithoutHooks = { readContext: readContext },
|
||||
invariant(
|
||||
null != tracing.__interactionsRef &&
|
||||
null != tracing.__interactionsRef.current,
|
||||
"It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling"
|
||||
"It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling"
|
||||
);
|
||||
var isWorking = !1,
|
||||
nextUnitOfWork = null,
|
||||
@@ -5171,9 +5160,14 @@ function commitAllHostEffects() {
|
||||
}
|
||||
effectTag.return = null;
|
||||
effectTag.child = null;
|
||||
effectTag.alternate &&
|
||||
((effectTag.alternate.child = null),
|
||||
(effectTag.alternate.return = null));
|
||||
effectTag.memoizedState = null;
|
||||
effectTag.updateQueue = null;
|
||||
effectTag = effectTag.alternate;
|
||||
null !== effectTag &&
|
||||
((effectTag.return = null),
|
||||
(effectTag.child = null),
|
||||
(effectTag.memoizedState = null),
|
||||
(effectTag.updateQueue = null));
|
||||
}
|
||||
nextEffect = nextEffect.nextEffect;
|
||||
}
|
||||
@@ -5586,20 +5580,22 @@ function completeUnitOfWork(workInProgress) {
|
||||
break a;
|
||||
}
|
||||
fiber = null !== fiber;
|
||||
viewConfig = null !== current && null !== current.memoizedState;
|
||||
renderExpirationTime =
|
||||
null !== current && null !== current.memoizedState;
|
||||
null !== current &&
|
||||
!fiber &&
|
||||
viewConfig &&
|
||||
renderExpirationTime &&
|
||||
((current = current.child.sibling),
|
||||
null !== current &&
|
||||
reconcileChildFibers(
|
||||
current$$1,
|
||||
current,
|
||||
null,
|
||||
renderExpirationTime
|
||||
));
|
||||
((viewConfig = current$$1.firstEffect),
|
||||
null !== viewConfig
|
||||
? ((current$$1.firstEffect = current),
|
||||
(current.nextEffect = viewConfig))
|
||||
: ((current$$1.firstEffect = current$$1.lastEffect = current),
|
||||
(current.nextEffect = null)),
|
||||
(current.effectTag = 8)));
|
||||
if (
|
||||
fiber !== viewConfig ||
|
||||
fiber !== renderExpirationTime ||
|
||||
(0 === (current$$1.effectTag & 1) && fiber)
|
||||
)
|
||||
current$$1.effectTag |= 4;
|
||||
@@ -5959,9 +5955,10 @@ function scheduleWorkToRoot(fiber, expirationTime) {
|
||||
}
|
||||
node = node.return;
|
||||
}
|
||||
if (null === root) return null;
|
||||
fiber = tracing.__interactionsRef.current;
|
||||
if (0 < fiber.size) {
|
||||
if (
|
||||
null !== root &&
|
||||
((fiber = tracing.__interactionsRef.current), 0 < fiber.size)
|
||||
) {
|
||||
alternate = root.pendingInteractionMap;
|
||||
var pendingInteractions = alternate.get(expirationTime);
|
||||
null != pendingInteractions
|
||||
@@ -6290,7 +6287,7 @@ function onUncaughtError(error) {
|
||||
nextFlushedRoot.expirationTime = 0;
|
||||
hasUnhandledError || ((hasUnhandledError = !0), (unhandledError = error));
|
||||
}
|
||||
function findHostInstance$1(component) {
|
||||
function findHostInstance(component) {
|
||||
var fiber = component._reactInternalFiber;
|
||||
void 0 === fiber &&
|
||||
("function" === typeof component.render
|
||||
@@ -6403,7 +6400,7 @@ function findNodeHandle(componentOrHandle) {
|
||||
if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;
|
||||
if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)
|
||||
return componentOrHandle.canonical._nativeTag;
|
||||
componentOrHandle = findHostInstance$1(componentOrHandle);
|
||||
componentOrHandle = findHostInstance(componentOrHandle);
|
||||
return null == componentOrHandle
|
||||
? componentOrHandle
|
||||
: componentOrHandle.canonical
|
||||
@@ -6499,7 +6496,7 @@ var roots = new Map(),
|
||||
};
|
||||
return ReactNativeComponent;
|
||||
})(React.Component);
|
||||
})(findNodeHandle, findHostInstance$1),
|
||||
})(findNodeHandle, findHostInstance),
|
||||
findNodeHandle: findNodeHandle,
|
||||
render: function(element, containerTag, callback) {
|
||||
var root = roots.get(containerTag);
|
||||
@@ -6612,7 +6609,7 @@ var roots = new Map(),
|
||||
TextInputState.blurTextInput(findNodeHandle(this));
|
||||
}
|
||||
};
|
||||
})(findNodeHandle, findHostInstance$1)
|
||||
})(findNodeHandle, findHostInstance)
|
||||
}
|
||||
};
|
||||
(function(devToolsConfig) {
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -956,10 +956,6 @@ var eventTypes$1 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
customBubblingEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes,
|
||||
customDirectEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes,
|
||||
ReactNativeBridgeEventPlugin = {
|
||||
eventTypes: ReactNativeViewConfigRegistry.eventTypes,
|
||||
extractEvents: function(
|
||||
@@ -969,8 +965,10 @@ var eventTypes$1 = {
|
||||
nativeEventTarget
|
||||
) {
|
||||
if (null == targetInst) return null;
|
||||
var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType],
|
||||
directDispatchConfig = customDirectEventTypes$1[topLevelType];
|
||||
var bubbleDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes[topLevelType],
|
||||
directDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes[topLevelType];
|
||||
invariant(
|
||||
bubbleDispatchConfig || directDispatchConfig,
|
||||
'Unsupported top level event type "%s" dispatched',
|
||||
@@ -1077,9 +1075,6 @@ function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) {
|
||||
});
|
||||
}
|
||||
RCTEventEmitter.register({
|
||||
getListener: getListener,
|
||||
registrationNames: registrationNameModules,
|
||||
_receiveRootNodeIDEvent: _receiveRootNodeIDEvent,
|
||||
receiveEvent: function(rootNodeID, topLevelType, nativeEventParam) {
|
||||
_receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam);
|
||||
},
|
||||
@@ -1606,7 +1601,7 @@ function setTimeoutCallback() {
|
||||
function shim$1() {
|
||||
invariant(
|
||||
!1,
|
||||
"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."
|
||||
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
var UPDATE_SIGNAL = {},
|
||||
@@ -1642,17 +1637,19 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
var info = "";
|
||||
do {
|
||||
a: switch (workInProgress.tag) {
|
||||
case 2:
|
||||
case 16:
|
||||
case 0:
|
||||
case 1:
|
||||
case 5:
|
||||
case 8:
|
||||
case 13:
|
||||
case 3:
|
||||
case 4:
|
||||
case 6:
|
||||
case 7:
|
||||
case 10:
|
||||
case 9:
|
||||
var JSCompiler_inline_result = "";
|
||||
break a;
|
||||
default:
|
||||
var owner = workInProgress._debugOwner,
|
||||
source = workInProgress._debugSource,
|
||||
name = getComponentName(workInProgress.type);
|
||||
var JSCompiler_inline_result = null;
|
||||
JSCompiler_inline_result = null;
|
||||
owner && (JSCompiler_inline_result = getComponentName(owner.type));
|
||||
owner = name;
|
||||
name = "";
|
||||
@@ -1666,9 +1663,6 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
: JSCompiler_inline_result &&
|
||||
(name = " (created by " + JSCompiler_inline_result + ")");
|
||||
JSCompiler_inline_result = "\n in " + (owner || "Unknown") + name;
|
||||
break a;
|
||||
default:
|
||||
JSCompiler_inline_result = "";
|
||||
}
|
||||
info += JSCompiler_inline_result;
|
||||
workInProgress = workInProgress.return;
|
||||
@@ -3402,7 +3396,8 @@ function updateMemoComponent(
|
||||
"function" === typeof type &&
|
||||
!shouldConstruct(type) &&
|
||||
void 0 === type.defaultProps &&
|
||||
null === Component.compare
|
||||
null === Component.compare &&
|
||||
void 0 === Component.defaultProps
|
||||
)
|
||||
return (
|
||||
(workInProgress.tag = 15),
|
||||
@@ -3840,7 +3835,6 @@ function updateSuspenseComponent(
|
||||
nextDidTimeout
|
||||
? ((renderExpirationTime = nextProps.fallback),
|
||||
(nextProps = createWorkInProgress(mode, mode.pendingProps, 0)),
|
||||
(nextProps.effectTag |= 2),
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
((nextDidTimeout =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -3853,7 +3847,6 @@ function updateSuspenseComponent(
|
||||
renderExpirationTime,
|
||||
current$$1.expirationTime
|
||||
)),
|
||||
(mode.effectTag |= 2),
|
||||
(renderExpirationTime = nextProps),
|
||||
(nextProps.childExpirationTime = 0),
|
||||
(renderExpirationTime.return = mode.return = workInProgress))
|
||||
@@ -3867,9 +3860,7 @@ function updateSuspenseComponent(
|
||||
nextDidTimeout
|
||||
? ((nextDidTimeout = nextProps.fallback),
|
||||
(nextProps = createFiberFromFragment(null, mode, 0, null)),
|
||||
(nextProps.effectTag |= 2),
|
||||
(nextProps.child = current$$1),
|
||||
(current$$1.return = nextProps),
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
(nextProps.child =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -4105,8 +4096,9 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
default:
|
||||
invariant(
|
||||
!1,
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.",
|
||||
current$$1
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Lazy element type must resolve to a class or function.%s",
|
||||
current$$1,
|
||||
""
|
||||
);
|
||||
}
|
||||
return getDerivedStateFromProps;
|
||||
@@ -4413,9 +4405,10 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
return (
|
||||
(context = workInProgress.type),
|
||||
(hasContext = resolveDefaultProps(
|
||||
context.type,
|
||||
context,
|
||||
workInProgress.pendingProps
|
||||
)),
|
||||
(hasContext = resolveDefaultProps(context.type, hasContext)),
|
||||
updateMemoComponent(
|
||||
current$$1,
|
||||
workInProgress,
|
||||
@@ -4942,7 +4935,12 @@ function commitWork(current$$1, finishedWork) {
|
||||
}
|
||||
else {
|
||||
if (6 === newProps.tag) throw Error("Not yet implemented.");
|
||||
if (null !== newProps.child) {
|
||||
if (13 === newProps.tag && null !== newProps.memoizedState) {
|
||||
current$$1 = newProps.child.sibling;
|
||||
current$$1.return = newProps;
|
||||
newProps = current$$1;
|
||||
continue;
|
||||
} else if (null !== newProps.child) {
|
||||
newProps.child.return = newProps;
|
||||
newProps = newProps.child;
|
||||
continue;
|
||||
@@ -5225,20 +5223,22 @@ function completeUnitOfWork(workInProgress) {
|
||||
break a;
|
||||
}
|
||||
newProps = null !== newProps;
|
||||
type = null !== current && null !== current.memoizedState;
|
||||
renderExpirationTime =
|
||||
null !== current && null !== current.memoizedState;
|
||||
null !== current &&
|
||||
!newProps &&
|
||||
type &&
|
||||
((current = current.child.sibling),
|
||||
null !== current &&
|
||||
reconcileChildFibers(
|
||||
current$$1,
|
||||
current,
|
||||
null,
|
||||
renderExpirationTime
|
||||
));
|
||||
renderExpirationTime &&
|
||||
((type = current.child.sibling),
|
||||
null !== type &&
|
||||
((current = current$$1.firstEffect),
|
||||
null !== current
|
||||
? ((current$$1.firstEffect = type),
|
||||
(type.nextEffect = current))
|
||||
: ((current$$1.firstEffect = current$$1.lastEffect = type),
|
||||
(type.nextEffect = null)),
|
||||
(type.effectTag = 8)));
|
||||
if (
|
||||
newProps !== type ||
|
||||
newProps !== renderExpirationTime ||
|
||||
(0 === (current$$1.effectTag & 1) && newProps)
|
||||
)
|
||||
current$$1.effectTag |= 4;
|
||||
@@ -5432,14 +5432,7 @@ function renderRoot(root$jscomp$0, isYieldy) {
|
||||
thenable.then(returnFiber$jscomp$0, returnFiber$jscomp$0);
|
||||
if (0 === (value.mode & 1)) {
|
||||
value.effectTag |= 64;
|
||||
reconcileChildren(
|
||||
sourceFiber$jscomp$0.alternate,
|
||||
sourceFiber$jscomp$0,
|
||||
null,
|
||||
returnFiber
|
||||
);
|
||||
sourceFiber$jscomp$0.effectTag &= -1025;
|
||||
sourceFiber$jscomp$0.effectTag &= -933;
|
||||
sourceFiber$jscomp$0.effectTag &= -1957;
|
||||
1 === sourceFiber$jscomp$0.tag &&
|
||||
null === sourceFiber$jscomp$0.alternate &&
|
||||
(sourceFiber$jscomp$0.tag = 17);
|
||||
@@ -5696,7 +5689,7 @@ function scheduleWorkToRoot(fiber, expirationTime) {
|
||||
}
|
||||
node = node.return;
|
||||
}
|
||||
return null === root ? null : root;
|
||||
return root;
|
||||
}
|
||||
function scheduleWork(fiber, expirationTime) {
|
||||
fiber = scheduleWorkToRoot(fiber, expirationTime);
|
||||
@@ -6121,13 +6114,18 @@ function completeRoot(root, finishedWork$jscomp$0, expirationTime) {
|
||||
commitWork(nextEffect.alternate, nextEffect);
|
||||
break;
|
||||
case 8:
|
||||
(prevState = nextEffect),
|
||||
unmountHostComponents(prevState),
|
||||
(prevState.return = null),
|
||||
(prevState.child = null),
|
||||
prevState.alternate &&
|
||||
((prevState.alternate.child = null),
|
||||
(prevState.alternate.return = null));
|
||||
prevState = nextEffect;
|
||||
unmountHostComponents(prevState);
|
||||
prevState.return = null;
|
||||
prevState.child = null;
|
||||
prevState.memoizedState = null;
|
||||
prevState.updateQueue = null;
|
||||
var alternate = prevState.alternate;
|
||||
null !== alternate &&
|
||||
((alternate.return = null),
|
||||
(alternate.child = null),
|
||||
(alternate.memoizedState = null),
|
||||
(alternate.updateQueue = null));
|
||||
}
|
||||
nextEffect = nextEffect.nextEffect;
|
||||
}
|
||||
@@ -6151,24 +6149,24 @@ function completeRoot(root, finishedWork$jscomp$0, expirationTime) {
|
||||
var effectTag$jscomp$0 = nextEffect.effectTag;
|
||||
if (effectTag$jscomp$0 & 36) {
|
||||
var current$$1$jscomp$1 = nextEffect.alternate;
|
||||
current$$1 = nextEffect;
|
||||
prevProps = currentRef;
|
||||
switch (current$$1.tag) {
|
||||
alternate = nextEffect;
|
||||
current$$1 = currentRef;
|
||||
switch (alternate.tag) {
|
||||
case 0:
|
||||
case 11:
|
||||
case 15:
|
||||
break;
|
||||
case 1:
|
||||
var instance$jscomp$0 = current$$1.stateNode;
|
||||
if (current$$1.effectTag & 4)
|
||||
var instance$jscomp$0 = alternate.stateNode;
|
||||
if (alternate.effectTag & 4)
|
||||
if (null === current$$1$jscomp$1)
|
||||
instance$jscomp$0.componentDidMount();
|
||||
else {
|
||||
var prevProps$jscomp$0 =
|
||||
current$$1.elementType === current$$1.type
|
||||
alternate.elementType === alternate.type
|
||||
? current$$1$jscomp$1.memoizedProps
|
||||
: resolveDefaultProps(
|
||||
current$$1.type,
|
||||
alternate.type,
|
||||
current$$1$jscomp$1.memoizedProps
|
||||
);
|
||||
instance$jscomp$0.componentDidUpdate(
|
||||
@@ -6177,32 +6175,32 @@ function completeRoot(root, finishedWork$jscomp$0, expirationTime) {
|
||||
instance$jscomp$0.__reactInternalSnapshotBeforeUpdate
|
||||
);
|
||||
}
|
||||
var updateQueue = current$$1.updateQueue;
|
||||
var updateQueue = alternate.updateQueue;
|
||||
null !== updateQueue &&
|
||||
commitUpdateQueue(
|
||||
current$$1,
|
||||
alternate,
|
||||
updateQueue,
|
||||
instance$jscomp$0,
|
||||
prevProps
|
||||
current$$1
|
||||
);
|
||||
break;
|
||||
case 3:
|
||||
var _updateQueue = current$$1.updateQueue;
|
||||
var _updateQueue = alternate.updateQueue;
|
||||
if (null !== _updateQueue) {
|
||||
prevState = null;
|
||||
if (null !== current$$1.child)
|
||||
switch (current$$1.child.tag) {
|
||||
prevProps = null;
|
||||
if (null !== alternate.child)
|
||||
switch (alternate.child.tag) {
|
||||
case 5:
|
||||
prevState = current$$1.child.stateNode;
|
||||
prevProps = alternate.child.stateNode;
|
||||
break;
|
||||
case 1:
|
||||
prevState = current$$1.child.stateNode;
|
||||
prevProps = alternate.child.stateNode;
|
||||
}
|
||||
commitUpdateQueue(
|
||||
current$$1,
|
||||
alternate,
|
||||
_updateQueue,
|
||||
prevState,
|
||||
prevProps
|
||||
prevProps,
|
||||
current$$1
|
||||
);
|
||||
}
|
||||
break;
|
||||
@@ -6276,7 +6274,7 @@ function onUncaughtError(error) {
|
||||
nextFlushedRoot.expirationTime = 0;
|
||||
hasUnhandledError || ((hasUnhandledError = !0), (unhandledError = error));
|
||||
}
|
||||
function findHostInstance$1(component) {
|
||||
function findHostInstance(component) {
|
||||
var fiber = component._reactInternalFiber;
|
||||
void 0 === fiber &&
|
||||
("function" === typeof component.render
|
||||
@@ -6389,7 +6387,7 @@ function findNodeHandle(componentOrHandle) {
|
||||
if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;
|
||||
if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)
|
||||
return componentOrHandle.canonical._nativeTag;
|
||||
componentOrHandle = findHostInstance$1(componentOrHandle);
|
||||
componentOrHandle = findHostInstance(componentOrHandle);
|
||||
return null == componentOrHandle
|
||||
? componentOrHandle
|
||||
: componentOrHandle.canonical
|
||||
@@ -6485,7 +6483,7 @@ var roots = new Map(),
|
||||
};
|
||||
return ReactNativeComponent;
|
||||
})(React.Component);
|
||||
})(findNodeHandle, findHostInstance$1),
|
||||
})(findNodeHandle, findHostInstance),
|
||||
findNodeHandle: findNodeHandle,
|
||||
render: function(element, containerTag, callback) {
|
||||
var root = roots.get(containerTag);
|
||||
@@ -6598,7 +6596,7 @@ var roots = new Map(),
|
||||
TextInputState.blurTextInput(findNodeHandle(this));
|
||||
}
|
||||
};
|
||||
})(findNodeHandle, findHostInstance$1),
|
||||
})(findNodeHandle, findHostInstance),
|
||||
computeComponentStackForErrorReporting: function(reactTag) {
|
||||
return (reactTag = getInstanceFromTag(reactTag))
|
||||
? getStackByFiberInDevAndProd(reactTag)
|
||||
|
||||
@@ -957,10 +957,6 @@ var eventTypes$1 = {
|
||||
}
|
||||
}
|
||||
},
|
||||
customBubblingEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes,
|
||||
customDirectEventTypes$1 =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes,
|
||||
ReactNativeBridgeEventPlugin = {
|
||||
eventTypes: ReactNativeViewConfigRegistry.eventTypes,
|
||||
extractEvents: function(
|
||||
@@ -970,8 +966,10 @@ var eventTypes$1 = {
|
||||
nativeEventTarget
|
||||
) {
|
||||
if (null == targetInst) return null;
|
||||
var bubbleDispatchConfig = customBubblingEventTypes$1[topLevelType],
|
||||
directDispatchConfig = customDirectEventTypes$1[topLevelType];
|
||||
var bubbleDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customBubblingEventTypes[topLevelType],
|
||||
directDispatchConfig =
|
||||
ReactNativeViewConfigRegistry.customDirectEventTypes[topLevelType];
|
||||
invariant(
|
||||
bubbleDispatchConfig || directDispatchConfig,
|
||||
'Unsupported top level event type "%s" dispatched',
|
||||
@@ -1078,9 +1076,6 @@ function _receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam) {
|
||||
});
|
||||
}
|
||||
RCTEventEmitter.register({
|
||||
getListener: getListener,
|
||||
registrationNames: registrationNameModules,
|
||||
_receiveRootNodeIDEvent: _receiveRootNodeIDEvent,
|
||||
receiveEvent: function(rootNodeID, topLevelType, nativeEventParam) {
|
||||
_receiveRootNodeIDEvent(rootNodeID, topLevelType, nativeEventParam);
|
||||
},
|
||||
@@ -1607,7 +1602,7 @@ function setTimeoutCallback() {
|
||||
function shim$1() {
|
||||
invariant(
|
||||
!1,
|
||||
"The current renderer does not support hyration. This error is likely caused by a bug in React. Please file an issue."
|
||||
"The current renderer does not support hydration. This error is likely caused by a bug in React. Please file an issue."
|
||||
);
|
||||
}
|
||||
var UPDATE_SIGNAL = {},
|
||||
@@ -1643,17 +1638,19 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
var info = "";
|
||||
do {
|
||||
a: switch (workInProgress.tag) {
|
||||
case 2:
|
||||
case 16:
|
||||
case 0:
|
||||
case 1:
|
||||
case 5:
|
||||
case 8:
|
||||
case 13:
|
||||
case 3:
|
||||
case 4:
|
||||
case 6:
|
||||
case 7:
|
||||
case 10:
|
||||
case 9:
|
||||
var JSCompiler_inline_result = "";
|
||||
break a;
|
||||
default:
|
||||
var owner = workInProgress._debugOwner,
|
||||
source = workInProgress._debugSource,
|
||||
name = getComponentName(workInProgress.type);
|
||||
var JSCompiler_inline_result = null;
|
||||
JSCompiler_inline_result = null;
|
||||
owner && (JSCompiler_inline_result = getComponentName(owner.type));
|
||||
owner = name;
|
||||
name = "";
|
||||
@@ -1667,9 +1664,6 @@ function getStackByFiberInDevAndProd(workInProgress) {
|
||||
: JSCompiler_inline_result &&
|
||||
(name = " (created by " + JSCompiler_inline_result + ")");
|
||||
JSCompiler_inline_result = "\n in " + (owner || "Unknown") + name;
|
||||
break a;
|
||||
default:
|
||||
JSCompiler_inline_result = "";
|
||||
}
|
||||
info += JSCompiler_inline_result;
|
||||
workInProgress = workInProgress.return;
|
||||
@@ -3460,7 +3454,8 @@ function updateMemoComponent(
|
||||
"function" === typeof type &&
|
||||
!shouldConstruct(type) &&
|
||||
void 0 === type.defaultProps &&
|
||||
null === Component.compare
|
||||
null === Component.compare &&
|
||||
void 0 === Component.defaultProps
|
||||
)
|
||||
return (
|
||||
(workInProgress.tag = 15),
|
||||
@@ -3908,7 +3903,6 @@ function updateSuspenseComponent(
|
||||
current$$1.pendingProps,
|
||||
0
|
||||
);
|
||||
renderExpirationTime.effectTag |= 2;
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
((nextDidTimeout =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -3928,7 +3922,6 @@ function updateSuspenseComponent(
|
||||
nextProps,
|
||||
mode.expirationTime
|
||||
);
|
||||
nextProps.effectTag |= 2;
|
||||
mode = renderExpirationTime;
|
||||
renderExpirationTime.childExpirationTime = 0;
|
||||
renderExpirationTime = nextProps;
|
||||
@@ -3943,9 +3936,7 @@ function updateSuspenseComponent(
|
||||
else if (((current$$1 = current$$1.child), nextDidTimeout)) {
|
||||
nextDidTimeout = nextProps.fallback;
|
||||
nextProps = createFiberFromFragment(null, mode, 0, null);
|
||||
nextProps.effectTag |= 2;
|
||||
nextProps.child = current$$1;
|
||||
current$$1.return = nextProps;
|
||||
0 === (workInProgress.mode & 1) &&
|
||||
(nextProps.child =
|
||||
null !== workInProgress.memoizedState
|
||||
@@ -4193,8 +4184,9 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
default:
|
||||
invariant(
|
||||
!1,
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Promise elements must resolve to a class or function.",
|
||||
current$$1
|
||||
"Element type is invalid. Received a promise that resolves to: %s. Lazy element type must resolve to a class or function.%s",
|
||||
current$$1,
|
||||
""
|
||||
);
|
||||
}
|
||||
return getDerivedStateFromProps;
|
||||
@@ -4502,9 +4494,10 @@ function beginWork(current$$1, workInProgress, renderExpirationTime) {
|
||||
return (
|
||||
(context = workInProgress.type),
|
||||
(hasContext = resolveDefaultProps(
|
||||
context.type,
|
||||
context,
|
||||
workInProgress.pendingProps
|
||||
)),
|
||||
(hasContext = resolveDefaultProps(context.type, hasContext)),
|
||||
updateMemoComponent(
|
||||
current$$1,
|
||||
workInProgress,
|
||||
@@ -5031,7 +5024,12 @@ function commitWork(current$$1, finishedWork) {
|
||||
}
|
||||
else {
|
||||
if (6 === newProps.tag) throw Error("Not yet implemented.");
|
||||
if (null !== newProps.child) {
|
||||
if (13 === newProps.tag && null !== newProps.memoizedState) {
|
||||
current$$1 = newProps.child.sibling;
|
||||
current$$1.return = newProps;
|
||||
newProps = current$$1;
|
||||
continue;
|
||||
} else if (null !== newProps.child) {
|
||||
newProps.child.return = newProps;
|
||||
newProps = newProps.child;
|
||||
continue;
|
||||
@@ -5149,14 +5147,7 @@ function throwException(
|
||||
thenable.then(returnFiber, returnFiber);
|
||||
if (0 === (value.mode & 1)) {
|
||||
value.effectTag |= 64;
|
||||
reconcileChildren(
|
||||
sourceFiber.alternate,
|
||||
sourceFiber,
|
||||
null,
|
||||
renderExpirationTime
|
||||
);
|
||||
sourceFiber.effectTag &= -1025;
|
||||
sourceFiber.effectTag &= -933;
|
||||
sourceFiber.effectTag &= -1957;
|
||||
1 === sourceFiber.tag &&
|
||||
null === sourceFiber.alternate &&
|
||||
(sourceFiber.tag = 17);
|
||||
@@ -5276,7 +5267,7 @@ var DispatcherWithoutHooks = { readContext: readContext },
|
||||
invariant(
|
||||
null != tracing.__interactionsRef &&
|
||||
null != tracing.__interactionsRef.current,
|
||||
"It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `schedule/tracing` module with `schedule/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling"
|
||||
"It is not supported to run the profiling version of a renderer (for example, `react-dom/profiling`) without also replacing the `scheduler/tracing` module with `scheduler/tracing-profiling`. Your bundler might have a setting for aliasing both modules. Learn more at http://fb.me/react-profiling"
|
||||
);
|
||||
var isWorking = !1,
|
||||
nextUnitOfWork = null,
|
||||
@@ -5356,9 +5347,14 @@ function commitAllHostEffects() {
|
||||
unmountHostComponents(effectTag),
|
||||
(effectTag.return = null),
|
||||
(effectTag.child = null),
|
||||
effectTag.alternate &&
|
||||
((effectTag.alternate.child = null),
|
||||
(effectTag.alternate.return = null));
|
||||
(effectTag.memoizedState = null),
|
||||
(effectTag.updateQueue = null),
|
||||
(effectTag = effectTag.alternate),
|
||||
null !== effectTag &&
|
||||
((effectTag.return = null),
|
||||
(effectTag.child = null),
|
||||
(effectTag.memoizedState = null),
|
||||
(effectTag.updateQueue = null));
|
||||
}
|
||||
nextEffect = nextEffect.nextEffect;
|
||||
}
|
||||
@@ -5769,19 +5765,24 @@ function completeUnitOfWork(workInProgress) {
|
||||
break a;
|
||||
}
|
||||
fiber = null !== fiber;
|
||||
type = null !== current && null !== current.memoizedState;
|
||||
renderExpirationTime =
|
||||
null !== current && null !== current.memoizedState;
|
||||
null !== current &&
|
||||
!fiber &&
|
||||
type &&
|
||||
((current = current.child.sibling),
|
||||
null !== current &&
|
||||
reconcileChildFibers(
|
||||
current$$1,
|
||||
current,
|
||||
null,
|
||||
renderExpirationTime
|
||||
));
|
||||
if (fiber !== type || (0 === (current$$1.effectTag & 1) && fiber))
|
||||
renderExpirationTime &&
|
||||
((type = current.child.sibling),
|
||||
null !== type &&
|
||||
((current = current$$1.firstEffect),
|
||||
null !== current
|
||||
? ((current$$1.firstEffect = type),
|
||||
(type.nextEffect = current))
|
||||
: ((current$$1.firstEffect = current$$1.lastEffect = type),
|
||||
(type.nextEffect = null)),
|
||||
(type.effectTag = 8)));
|
||||
if (
|
||||
fiber !== renderExpirationTime ||
|
||||
(0 === (current$$1.effectTag & 1) && fiber)
|
||||
)
|
||||
current$$1.effectTag |= 4;
|
||||
break;
|
||||
case 7:
|
||||
@@ -6147,9 +6148,10 @@ function scheduleWorkToRoot(fiber, expirationTime) {
|
||||
}
|
||||
node = node.return;
|
||||
}
|
||||
if (null === root) return null;
|
||||
fiber = tracing.__interactionsRef.current;
|
||||
if (0 < fiber.size) {
|
||||
if (
|
||||
null !== root &&
|
||||
((fiber = tracing.__interactionsRef.current), 0 < fiber.size)
|
||||
) {
|
||||
alternate = root.pendingInteractionMap;
|
||||
var pendingInteractions = alternate.get(expirationTime);
|
||||
null != pendingInteractions
|
||||
@@ -6478,7 +6480,7 @@ function onUncaughtError(error) {
|
||||
nextFlushedRoot.expirationTime = 0;
|
||||
hasUnhandledError || ((hasUnhandledError = !0), (unhandledError = error));
|
||||
}
|
||||
function findHostInstance$1(component) {
|
||||
function findHostInstance(component) {
|
||||
var fiber = component._reactInternalFiber;
|
||||
void 0 === fiber &&
|
||||
("function" === typeof component.render
|
||||
@@ -6591,7 +6593,7 @@ function findNodeHandle(componentOrHandle) {
|
||||
if (componentOrHandle._nativeTag) return componentOrHandle._nativeTag;
|
||||
if (componentOrHandle.canonical && componentOrHandle.canonical._nativeTag)
|
||||
return componentOrHandle.canonical._nativeTag;
|
||||
componentOrHandle = findHostInstance$1(componentOrHandle);
|
||||
componentOrHandle = findHostInstance(componentOrHandle);
|
||||
return null == componentOrHandle
|
||||
? componentOrHandle
|
||||
: componentOrHandle.canonical
|
||||
@@ -6687,7 +6689,7 @@ var roots = new Map(),
|
||||
};
|
||||
return ReactNativeComponent;
|
||||
})(React.Component);
|
||||
})(findNodeHandle, findHostInstance$1),
|
||||
})(findNodeHandle, findHostInstance),
|
||||
findNodeHandle: findNodeHandle,
|
||||
render: function(element, containerTag, callback) {
|
||||
var root = roots.get(containerTag);
|
||||
@@ -6805,7 +6807,7 @@ var roots = new Map(),
|
||||
TextInputState.blurTextInput(findNodeHandle(this));
|
||||
}
|
||||
};
|
||||
})(findNodeHandle, findHostInstance$1),
|
||||
})(findNodeHandle, findHostInstance),
|
||||
computeComponentStackForErrorReporting: function(reactTag) {
|
||||
return (reactTag = getInstanceFromTag(reactTag))
|
||||
? getStackByFiberInDevAndProd(reactTag)
|
||||
|
||||
@@ -59,6 +59,7 @@ export type ReactContext<T> = {
|
||||
|
||||
_currentValue: T,
|
||||
_currentValue2: T,
|
||||
_threadCount: number,
|
||||
|
||||
// DEV only
|
||||
_currentRenderer?: Object | null,
|
||||
|
||||
+3
-3
@@ -145,7 +145,7 @@
|
||||
"react-native": "local-cli/wrong-react-native.js"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"react": "16.6.1"
|
||||
"react": "16.6.3"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.0.0",
|
||||
@@ -220,9 +220,9 @@
|
||||
"jest": "23.4.1",
|
||||
"jest-junit": "5.1.0",
|
||||
"prettier": "1.13.6",
|
||||
"react": "16.6.1",
|
||||
"react": "16.6.3",
|
||||
"react-native-dummy": "0.1.0",
|
||||
"react-test-renderer": "16.6.1",
|
||||
"react-test-renderer": "16.6.3",
|
||||
"shelljs": "^0.7.8"
|
||||
},
|
||||
"detox": {
|
||||
|
||||
@@ -2398,12 +2398,13 @@ fbjs-scripts@^1.0.0:
|
||||
semver "^5.1.0"
|
||||
through2 "^2.0.0"
|
||||
|
||||
fbjs@^0.8.9:
|
||||
version "0.8.17"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd"
|
||||
integrity sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=
|
||||
fbjs@1.0.0, fbjs@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-1.0.0.tgz#52c215e0883a3c86af2a7a776ed51525ae8e0a5a"
|
||||
integrity sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA==
|
||||
dependencies:
|
||||
core-js "^1.0.0"
|
||||
core-js "^2.4.1"
|
||||
fbjs-css-vars "^1.0.0"
|
||||
isomorphic-fetch "^2.1.1"
|
||||
loose-envify "^1.0.0"
|
||||
object-assign "^4.1.0"
|
||||
@@ -2411,13 +2412,12 @@ fbjs@^0.8.9:
|
||||
setimmediate "^1.0.5"
|
||||
ua-parser-js "^0.7.18"
|
||||
|
||||
fbjs@^1.0.0:
|
||||
version "1.0.0"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-1.0.0.tgz#52c215e0883a3c86af2a7a776ed51525ae8e0a5a"
|
||||
integrity sha512-MUgcMEJaFhCaF1QtWGnmq9ZDRAzECTCRAF7O6UZIlAlkTs1SasiX9aP0Iw7wfD2mJ7wDTNfg2w7u5fSCwJk1OA==
|
||||
fbjs@^0.8.9:
|
||||
version "0.8.17"
|
||||
resolved "https://registry.yarnpkg.com/fbjs/-/fbjs-0.8.17.tgz#c4d598ead6949112653d6588b01a5cdcd9f90fdd"
|
||||
integrity sha1-xNWY6taUkRJlPWWIsBpc3Nn5D90=
|
||||
dependencies:
|
||||
core-js "^2.4.1"
|
||||
fbjs-css-vars "^1.0.0"
|
||||
core-js "^1.0.0"
|
||||
isomorphic-fetch "^2.1.1"
|
||||
loose-envify "^1.0.0"
|
||||
object-assign "^4.1.0"
|
||||
@@ -5090,10 +5090,10 @@ react-devtools-core@^3.4.2:
|
||||
shell-quote "^1.6.1"
|
||||
ws "^3.3.1"
|
||||
|
||||
react-is@^16.6.1:
|
||||
version "16.6.1"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.6.1.tgz#f77b1c3d901be300abe8d58645b7a59e794e5982"
|
||||
integrity sha512-wOKsGtvTMYs7WAscmwwdM8sfRRvE17Ym30zFj3n37Qx5tHRfhenPKEPILHaHob6WoLFADmQm1ZNrE5xMCM6sCw==
|
||||
react-is@^16.6.3:
|
||||
version "16.6.3"
|
||||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.6.3.tgz#d2d7462fcfcbe6ec0da56ad69047e47e56e7eac0"
|
||||
integrity sha512-u7FDWtthB4rWibG/+mFbVd5FvdI20yde86qKGx4lVUTWmPlSWQ4QxbBIrrs+HnXGbxOUlUzTAP/VDmvCwaP2yA==
|
||||
|
||||
react-native-dummy@0.1.0:
|
||||
version "0.1.0"
|
||||
@@ -5108,15 +5108,15 @@ react-proxy@^1.1.7:
|
||||
lodash "^4.6.1"
|
||||
react-deep-force-update "^1.0.0"
|
||||
|
||||
react-test-renderer@16.6.1:
|
||||
version "16.6.1"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.6.1.tgz#8ea357652be3cf81cbd6b2f686e74ebe67c17b78"
|
||||
integrity sha512-sgZwJZYIgQptRi2qk5+gB8FBQGk4gLSs0gmKZPMfhd3dLkdxIUwVLHteLN3Bnj4LokIZd3U+V2NEJUqeV2PT2w==
|
||||
react-test-renderer@16.6.3:
|
||||
version "16.6.3"
|
||||
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.6.3.tgz#5f3a1a7d5c3379d46f7052b848b4b72e47c89f38"
|
||||
integrity sha512-B5bCer+qymrQz/wN03lT0LppbZUDRq6AMfzMKrovzkGzfO81a9T+PWQW6MzkWknbwODQH/qpJno/yFQLX5IWrQ==
|
||||
dependencies:
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.2"
|
||||
react-is "^16.6.1"
|
||||
scheduler "^0.11.0"
|
||||
react-is "^16.6.3"
|
||||
scheduler "^0.11.2"
|
||||
|
||||
react-timer-mixin@^0.13.2:
|
||||
version "0.13.4"
|
||||
@@ -5131,15 +5131,15 @@ react-transform-hmr@^1.0.4:
|
||||
global "^4.3.0"
|
||||
react-proxy "^1.1.7"
|
||||
|
||||
react@16.6.1:
|
||||
version "16.6.1"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.6.1.tgz#ee2aef4f0a09e494594882029821049772f915fe"
|
||||
integrity sha512-OtawJThYlvRgm9BXK+xTL7BIlDx8vv21j+fbQDjRRUyok6y7NyjlweGorielTahLZHYIdKUoK2Dp9ByVWuMqxw==
|
||||
react@16.6.3:
|
||||
version "16.6.3"
|
||||
resolved "https://registry.yarnpkg.com/react/-/react-16.6.3.tgz#25d77c91911d6bbdd23db41e70fb094cc1e0871c"
|
||||
integrity sha512-zCvmH2vbEolgKxtqXL2wmGCUxUyNheYn/C+PD1YAjfxHC54+MhdruyhO7QieQrYsYeTxrn93PM2y0jRH1zEExw==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
prop-types "^15.6.2"
|
||||
scheduler "^0.11.0"
|
||||
scheduler "^0.11.2"
|
||||
|
||||
read-pkg-up@^1.0.1:
|
||||
version "1.0.1"
|
||||
@@ -5538,10 +5538,10 @@ sax@~1.1.1:
|
||||
resolved "http://registry.npmjs.org/sax/-/sax-1.1.6.tgz#5d616be8a5e607d54e114afae55b7eaf2fcc3240"
|
||||
integrity sha1-XWFr6KXmB9VOEUr65Vt+ry/MMkA=
|
||||
|
||||
scheduler@^0.11.0:
|
||||
version "0.11.0"
|
||||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.11.0.tgz#def1f1bfa6550cc57981a87106e65e8aea41a6b5"
|
||||
integrity sha512-MAYbBfmiEHxF0W+c4CxMpEqMYK+rYF584VP/qMKSiHM6lTkBKKYOJaDiSILpJHla6hBOsVd6GucPL46o2Uq3sg==
|
||||
scheduler@^0.11.2:
|
||||
version "0.11.2"
|
||||
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.11.2.tgz#a8db5399d06eba5abac51b705b7151d2319d33d3"
|
||||
integrity sha512-+WCP3s3wOaW4S7C1tl3TEXp4l9lJn0ZK8G3W3WKRWmw77Z2cIFUW2MiNTMHn5sCjxN+t7N43HAOOgMjyAg5hlg==
|
||||
dependencies:
|
||||
loose-envify "^1.1.0"
|
||||
object-assign "^4.1.1"
|
||||
|
||||
Reference in New Issue
Block a user