dist/react-tappable.js
function (config) {
  var getPublicInstance = config.getPublicInstance;

  var _ReactFiberScheduler = ReactFiberScheduler(config),
      computeUniqueAsyncExpiration = _ReactFiberScheduler.computeUniqueAsyncExpiration,
      recalculateCurrentTime = _ReactFiberScheduler.recalculateCurrentTime,
      computeExpirationForFiber = _ReactFiberScheduler.computeExpirationForFiber,
      scheduleWork = _ReactFiberScheduler.scheduleWork,
      requestWork = _ReactFiberScheduler.requestWork,
      flushRoot = _ReactFiberScheduler.flushRoot,
      batchedUpdates = _ReactFiberScheduler.batchedUpdates,
      unbatchedUpdates = _ReactFiberScheduler.unbatchedUpdates,
      flushSync = _ReactFiberScheduler.flushSync,
      flushControlled = _ReactFiberScheduler.flushControlled,
      deferredUpdates = _ReactFiberScheduler.deferredUpdates,
      syncUpdates = _ReactFiberScheduler.syncUpdates,
      interactiveUpdates = _ReactFiberScheduler.interactiveUpdates,
      flushInteractiveUpdates = _ReactFiberScheduler.flushInteractiveUpdates,
      legacyContext = _ReactFiberScheduler.legacyContext;

  var findCurrentUnmaskedContext = legacyContext.findCurrentUnmaskedContext,
      isContextProvider = legacyContext.isContextProvider,
      processChildContext = legacyContext.processChildContext;


  function getContextForSubtree(parentComponent) {
    if (!parentComponent) {
      return emptyObject;
    }

    var fiber = get(parentComponent);
    var parentContext = findCurrentUnmaskedContext(fiber);
    return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
  }

  function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
    {
      if (ReactDebugCurrentFiber.phase === 'render' && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) {
        didWarnAboutNestedUpdates = true;
        warning(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(ReactDebugCurrentFiber.current) || 'Unknown');
      }
    }

    callback = callback === undefined ? null : callback;
    {
      warning(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
    }

    var update = {
      expirationTime: expirationTime,
      partialState: { element: element },
      callback: callback,
      isReplace: false,
      isForced: false,
      capturedValue: null,
      next: null
    };
    insertUpdateIntoFiber(current, update);
    scheduleWork(current, expirationTime);

    return expirationTime;
  }

  function updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback) {
    // TODO: If this is a nested container, this won't be the root.
    var current = container.current;

    {
      if (ReactFiberInstrumentation_1.debugTool) {
        if (current.alternate === null) {
          ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
        } else if (element === null) {
          ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
        } else {
          ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
        }
      }
    }

    var context = getContextForSubtree(parentComponent);
    if (container.context === null) {
      container.context = context;
    } else {
      container.pendingContext = context;
    }

    return scheduleRootUpdate(current, element, currentTime, expirationTime, callback);
  }

  function findHostInstance(fiber) {
    var hostFiber = findCurrentHostFiber(fiber);
    if (hostFiber === null) {
      return null;
    }
    return hostFiber.stateNode;
  }

  return {
    createContainer: function (containerInfo, isAsync, hydrate) {
      return createFiberRoot(containerInfo, isAsync, hydrate);
    },
    updateContainer: function (element, container, parentComponent, callback) {
      var current = container.current;
      var currentTime = recalculateCurrentTime();
      var expirationTime = computeExpirationForFiber(current);
      return updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback);
    },
    updateContainerAtExpirationTime: function (element, container, parentComponent, expirationTime, callback) {
      var currentTime = recalculateCurrentTime();
      return updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback);
    },


    flushRoot: flushRoot,

    requestWork: requestWork,

    computeUniqueAsyncExpiration: computeUniqueAsyncExpiration,

    batchedUpdates: batchedUpdates,

    unbatchedUpdates: unbatchedUpdates,

    deferredUpdates: deferredUpdates,

    syncUpdates: syncUpdates,

    interactiveUpdates: interactiveUpdates,

    flushInteractiveUpdates: flushInteractiveUpdates,

    flushControlled: flushControlled,

    flushSync: flushSync,

    getPublicRootInstance: function (container) {
      var containerFiber = container.current;
      if (!containerFiber.child) {
        return null;
      }
      switch (containerFiber.child.tag) {
        case HostComponent:
          return getPublicInstance(containerFiber.child.stateNode);
        default:
          return containerFiber.child.stateNode;
      }
    },


    findHostInstance: findHostInstance,

    findHostInstanceWithNoPortals: function (fiber) {
      var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
      if (hostFiber === null) {
        return null;
      }
      return hostFiber.stateNode;
    },
    injectIntoDevTools: function (devToolsConfig) {
      var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;

      return injectInternals(_assign({}, devToolsConfig, {
        findHostInstanceByFiber: function (fiber) {
          return findHostInstance(fiber);
        },
        findFiberByHostInstance: function (instance) {
          if (!findFiberByHostInstance) {
            // Might not be implemented by the renderer.
            return null;
          }
          return findFiberByHostInstance(instance);
        }
      }));
    }
  };
}
function (config) {
  var getPublicInstance = config.getPublicInstance;

  var _ReactFiberScheduler = ReactFiberScheduler(config),
      computeUniqueAsyncExpiration = _ReactFiberScheduler.computeUniqueAsyncExpiration,
      recalculateCurrentTime = _ReactFiberScheduler.recalculateCurrentTime,
      computeExpirationForFiber = _ReactFiberScheduler.computeExpirationForFiber,
      scheduleWork = _ReactFiberScheduler.scheduleWork,
      requestWork = _ReactFiberScheduler.requestWork,
      flushRoot = _ReactFiberScheduler.flushRoot,
      batchedUpdates = _ReactFiberScheduler.batchedUpdates,
      unbatchedUpdates = _ReactFiberScheduler.unbatchedUpdates,
      flushSync = _ReactFiberScheduler.flushSync,
      flushControlled = _ReactFiberScheduler.flushControlled,
      deferredUpdates = _ReactFiberScheduler.deferredUpdates,
      syncUpdates = _ReactFiberScheduler.syncUpdates,
      interactiveUpdates = _ReactFiberScheduler.interactiveUpdates,
      flushInteractiveUpdates = _ReactFiberScheduler.flushInteractiveUpdates,
      legacyContext = _ReactFiberScheduler.legacyContext;

  var findCurrentUnmaskedContext = legacyContext.findCurrentUnmaskedContext,
      isContextProvider = legacyContext.isContextProvider,
      processChildContext = legacyContext.processChildContext;


  function getContextForSubtree(parentComponent) {
    if (!parentComponent) {
      return emptyObject;
    }

    var fiber = get(parentComponent);
    var parentContext = findCurrentUnmaskedContext(fiber);
    return isContextProvider(fiber) ? processChildContext(fiber, parentContext) : parentContext;
  }

  function scheduleRootUpdate(current, element, currentTime, expirationTime, callback) {
    {
      if (ReactDebugCurrentFiber.phase === 'render' && ReactDebugCurrentFiber.current !== null && !didWarnAboutNestedUpdates) {
        didWarnAboutNestedUpdates = true;
        warning(false, 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.', getComponentName(ReactDebugCurrentFiber.current) || 'Unknown');
      }
    }

    callback = callback === undefined ? null : callback;
    {
      warning(callback === null || typeof callback === 'function', 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.', callback);
    }

    var update = {
      expirationTime: expirationTime,
      partialState: { element: element },
      callback: callback,
      isReplace: false,
      isForced: false,
      capturedValue: null,
      next: null
    };
    insertUpdateIntoFiber(current, update);
    scheduleWork(current, expirationTime);

    return expirationTime;
  }

  function updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback) {
    // TODO: If this is a nested container, this won't be the root.
    var current = container.current;

    {
      if (ReactFiberInstrumentation_1.debugTool) {
        if (current.alternate === null) {
          ReactFiberInstrumentation_1.debugTool.onMountContainer(container);
        } else if (element === null) {
          ReactFiberInstrumentation_1.debugTool.onUnmountContainer(container);
        } else {
          ReactFiberInstrumentation_1.debugTool.onUpdateContainer(container);
        }
      }
    }

    var context = getContextForSubtree(parentComponent);
    if (container.context === null) {
      container.context = context;
    } else {
      container.pendingContext = context;
    }

    return scheduleRootUpdate(current, element, currentTime, expirationTime, callback);
  }

  function findHostInstance(fiber) {
    var hostFiber = findCurrentHostFiber(fiber);
    if (hostFiber === null) {
      return null;
    }
    return hostFiber.stateNode;
  }

  return {
    createContainer: function (containerInfo, isAsync, hydrate) {
      return createFiberRoot(containerInfo, isAsync, hydrate);
    },
    updateContainer: function (element, container, parentComponent, callback) {
      var current = container.current;
      var currentTime = recalculateCurrentTime();
      var expirationTime = computeExpirationForFiber(current);
      return updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback);
    },
    updateContainerAtExpirationTime: function (element, container, parentComponent, expirationTime, callback) {
      var currentTime = recalculateCurrentTime();
      return updateContainerAtExpirationTime(element, container, parentComponent, currentTime, expirationTime, callback);
    },


    flushRoot: flushRoot,

    requestWork: requestWork,

    computeUniqueAsyncExpiration: computeUniqueAsyncExpiration,

    batchedUpdates: batchedUpdates,

    unbatchedUpdates: unbatchedUpdates,

    deferredUpdates: deferredUpdates,

    syncUpdates: syncUpdates,

    interactiveUpdates: interactiveUpdates,

    flushInteractiveUpdates: flushInteractiveUpdates,

    flushControlled: flushControlled,

    flushSync: flushSync,

    getPublicRootInstance: function (container) {
      var containerFiber = container.current;
      if (!containerFiber.child) {
        return null;
      }
      switch (containerFiber.child.tag) {
        case HostComponent:
          return getPublicInstance(containerFiber.child.stateNode);
        default:
          return containerFiber.child.stateNode;
      }
    },


    findHostInstance: findHostInstance,

    findHostInstanceWithNoPortals: function (fiber) {
      var hostFiber = findCurrentHostFiberWithNoPortals(fiber);
      if (hostFiber === null) {
        return null;
      }
      return hostFiber.stateNode;
    },
    injectIntoDevTools: function (devToolsConfig) {
      var findFiberByHostInstance = devToolsConfig.findFiberByHostInstance;

      return injectInternals(_assign({}, devToolsConfig, {
        findHostInstanceByFiber: function (fiber) {
          return findHostInstance(fiber);
        },
        findFiberByHostInstance: function (instance) {
          if (!findFiberByHostInstance) {
            // Might not be implemented by the renderer.
            return null;
          }
          return findFiberByHostInstance(instance);
        }
      }));
    }
  };
}
function ( config ) { var getPublicInstance = config . getPublicInstance ; var _ReactFiberScheduler = ReactFiberScheduler ( config ) , computeUniqueAsyncExpiration = _ReactFiberScheduler . computeUniqueAsyncExpiration , recalculateCurrentTime = _ReactFiberScheduler . recalculateCurrentTime , computeExpirationForFiber = _ReactFiberScheduler . computeExpirationForFiber , scheduleWork = _ReactFiberScheduler . scheduleWork , requestWork = _ReactFiberScheduler . requestWork , flushRoot = _ReactFiberScheduler . flushRoot , batchedUpdates = _ReactFiberScheduler . batchedUpdates , unbatchedUpdates = _ReactFiberScheduler . unbatchedUpdates , flushSync = _ReactFiberScheduler . flushSync , flushControlled = _ReactFiberScheduler . flushControlled , deferredUpdates = _ReactFiberScheduler . deferredUpdates , syncUpdates = _ReactFiberScheduler . syncUpdates , interactiveUpdates = _ReactFiberScheduler . interactiveUpdates , flushInteractiveUpdates = _ReactFiberScheduler . flushInteractiveUpdates , legacyContext = _ReactFiberScheduler . legacyContext ; var findCurrentUnmaskedContext = legacyContext . findCurrentUnmaskedContext , isContextProvider = legacyContext . isContextProvider , processChildContext = legacyContext . processChildContext ; function getContextForSubtree ( parentComponent ) { if ( ! parentComponent ) { return emptyObject ; } var fiber = get ( parentComponent ) ; var parentContext = findCurrentUnmaskedContext ( fiber ) ; return isContextProvider ( fiber ) ? processChildContext ( fiber , parentContext ) : parentContext ; } function scheduleRootUpdate ( current , element , currentTime , expirationTime , callback ) { { if ( ReactDebugCurrentFiber . phase === 'render' && ReactDebugCurrentFiber . current !== null && ! didWarnAboutNestedUpdates ) { didWarnAboutNestedUpdates = true ; warning ( false , 'Render methods should be a pure function of props and state; ' + 'triggering nested component updates from render is not allowed. ' + 'If necessary, trigger nested updates in componentDidUpdate.\n\n' + 'Check the render method of %s.' , getComponentName ( ReactDebugCurrentFiber . current ) || 'Unknown' ) ; } } callback = callback === undefined ? null : callback ; { warning ( callback === null || typeof callback === 'function' , 'render(...): Expected the last optional `callback` argument to be a ' + 'function. Instead received: %s.' , callback ) ; } var update = { expirationTime : expirationTime , partialState : { element : element } , callback : callback , isReplace : false , isForced : false , capturedValue : null , next : null } ; insertUpdateIntoFiber ( current , update ) ; scheduleWork ( current , expirationTime ) ; return expirationTime ; } function updateContainerAtExpirationTime ( element , container , parentComponent , currentTime , expirationTime , callback ) { // TODO: If this is a nested container, this won't be the root. var current = container . current ; { if ( ReactFiberInstrumentation_1 . debugTool ) { if ( current . alternate === null ) { ReactFiberInstrumentation_1 . debugTool . onMountContainer ( container ) ; } else if ( element === null ) { ReactFiberInstrumentation_1 . debugTool . onUnmountContainer ( container ) ; } else { ReactFiberInstrumentation_1 . debugTool . onUpdateContainer ( container ) ; } } } var context = getContextForSubtree ( parentComponent ) ; if ( container . context === null ) { container . context = context ; } else { container . pendingContext = context ; } return scheduleRootUpdate ( current , element , currentTime , expirationTime , callback ) ; } function findHostInstance ( fiber ) { var hostFiber = findCurrentHostFiber ( fiber ) ; if ( hostFiber === null ) { return null ; } return hostFiber . stateNode ; } return { createContainer : function ( containerInfo , isAsync , hydrate ) { return createFiberRoot ( containerInfo , isAsync , hydrate ) ; } , updateContainer : function ( element , container , parentComponent , callback ) { var current = container . current ; var currentTime = recalculateCurrentTime ( ) ; var expirationTime = computeExpirationForFiber ( current ) ; return updateContainerAtExpirationTime ( element , container , parentComponent , currentTime , expirationTime , callback ) ; } , updateContainerAtExpirationTime : function ( element , container , parentComponent , expirationTime , callback ) { var currentTime = recalculateCurrentTime ( ) ; return updateContainerAtExpirationTime ( element , container , parentComponent , currentTime , expirationTime , callback ) ; } , flushRoot : flushRoot , requestWork : requestWork , computeUniqueAsyncExpiration : computeUniqueAsyncExpiration , batchedUpdates : batchedUpdates , unbatchedUpdates : unbatchedUpdates , deferredUpdates : deferredUpdates , syncUpdates : syncUpdates , interactiveUpdates : interactiveUpdates , flushInteractiveUpdates : flushInteractiveUpdates , flushControlled : flushControlled , flushSync : flushSync , getPublicRootInstance : function ( container ) { var containerFiber = container . current ; if ( ! containerFiber . child ) { return null ; } switch ( containerFiber . child . tag ) { case HostComponent : return getPublicInstance ( containerFiber . child . stateNode ) ; default : return containerFiber . child . stateNode ; } } , findHostInstance : findHostInstance , findHostInstanceWithNoPortals : function ( fiber ) { var hostFiber = findCurrentHostFiberWithNoPortals ( fiber ) ; if ( hostFiber === null ) { return null ; } return hostFiber . stateNode ; } , injectIntoDevTools : function ( devToolsConfig ) { var findFiberByHostInstance = devToolsConfig . findFiberByHostInstance ; return injectInternals ( _assign ( { } , devToolsConfig , { findHostInstanceByFiber : function ( fiber ) { return findHostInstance ( fiber ) ; } , findFiberByHostInstance : function ( instance ) { if ( ! findFiberByHostInstance ) { // Might not be implemented by the renderer. return null ; } return findFiberByHostInstance ( instance ) ; } } ) ) ; } } ; }
0 is PROD, 1 is DEV. Might add PROFILE later.
0 is PROD 1 is DEV . Might add PROFILE later .