mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-24 04:16:00 +08:00
Update fbsource
Reviewed By: zertosh Differential Revision: D4111832 fbshipit-source-id: 301969a1c828fb87e7e09c1eea3cd44799b89509
This commit is contained in:
committed by
Facebook Github Bot
parent
90a696597c
commit
bd3be5bd24
@@ -31,8 +31,11 @@ type AttributeDiffer = (prevProp: mixed, nextProp: mixed) => boolean;
|
||||
type AttributePreprocessor = (nextProp: mixed) => mixed;
|
||||
|
||||
type CustomAttributeConfiguration =
|
||||
// $FlowFixMe(>=0.34.0)
|
||||
{ diff: AttributeDiffer, process: AttributePreprocessor } |
|
||||
// $FlowFixMe(>=0.34.0)
|
||||
{ diff: AttributeDiffer } |
|
||||
// $FlowFixMe(>=0.34.0)
|
||||
{ process: AttributePreprocessor };
|
||||
|
||||
type AttributeConfiguration =
|
||||
|
||||
@@ -73,6 +73,7 @@ function ChildReconciler(shouldClone) {
|
||||
return clone;
|
||||
}
|
||||
const child = createFiberFromElement(element, priority);
|
||||
// $FlowFixMe(>=0.34.0)
|
||||
previousSibling.sibling = child;
|
||||
child.return = returnFiber;
|
||||
return child;
|
||||
|
||||
@@ -245,6 +245,7 @@ exports.createFiberFromElement = function(element : ReactElement<*>, priorityLev
|
||||
return fiber;
|
||||
};
|
||||
|
||||
// $FlowFixMe(>=0.34.0)
|
||||
function createFiberFromElementType(type : mixed, key : null | string) {
|
||||
let fiber;
|
||||
if (typeof type === 'function') {
|
||||
|
||||
Reference in New Issue
Block a user