NavigationReactMobile/sample/react.js
/**
 * Create and return a new ReactElement of the given type.
 * See https://reactjs.org/docs/react-api.html#createelement
 */
Create and return a new ReactElement of the given type.
Create and return a new ReactElement of the given type .
function createElement(type, config, children) {
  var propName = void 0;
  var props = {};
  var key = null;
  var ref = null;
  var self = null;
  var source = null;
  if (config != null) {
    if (hasValidRef(config)) {
      ref = config.ref;
    }
    if (hasValidKey(config)) {
      key = '' + config.key;
    }
    self = config.__self === undefined ? null : config.__self;
    source = config.__source === undefined ? null : config.__source;
    for (propName in config) {
      if (hasOwnProperty$1.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
        props[propName] = config[propName];
      }
    }
  }
  var childrenLength = arguments.length - 2;
  if (childrenLength === 1) {
    props.children = children;
  } else if (childrenLength > 1) {
    var childArray = Array(childrenLength);
    for (var i = 0; i < childrenLength; i++) {
      childArray[i] = arguments[i + 2];
    }
    {
      if (Object.freeze) {
        Object.freeze(childArray);
      }
    }
    props.children = childArray;
  }
  if (type && type.defaultProps) {
    var defaultProps = type.defaultProps;
    for (propName in defaultProps) {
      if (props[propName] === undefined) {
        props[propName] = defaultProps[propName];
      }
    }
  }
  {
    if (key || ref) {
      if (typeof props.$$typeof === 'undefined' || props.$$typeof !== REACT_ELEMENT_TYPE) {
        var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
        if (key) {
          defineKeyPropWarningGetter(props, displayName);
        }
        if (ref) {
          defineRefPropWarningGetter(props, displayName);
        }
      }
    }
  }
  return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
}
function createElement ( type , config , children ) { var propName = void 0 ; var props = { } ; var key = null ; var ref = null ; var self = null ; var source = null ; if ( config != null ) { if ( hasValidRef ( config ) ) { ref = config . ref ; } if ( hasValidKey ( config ) ) { key = '' + config . key ; } self = config . __self === undefined ? null : config . __self ; source = config . __source === undefined ? null : config . __source ; for ( propName in config ) { if ( hasOwnProperty$1 . call ( config , propName ) && ! RESERVED_PROPS . hasOwnProperty ( propName ) ) { props [ propName ] = config [ propName ] ; } } } var childrenLength = arguments . length - 2 ; if ( childrenLength === 1 ) { props . children = children ; } else if ( childrenLength > 1 ) { var childArray = Array ( childrenLength ) ; for ( var i = 0 ; i < childrenLength ; i ++ ) { childArray [ i ] = arguments [ i + 2 ] ; } { if ( Object . freeze ) { Object . freeze ( childArray ) ; } } props . children = childArray ; } if ( type && type . defaultProps ) { var defaultProps = type . defaultProps ; for ( propName in defaultProps ) { if ( props [ propName ] === undefined ) { props [ propName ] = defaultProps [ propName ] ; } } } { if ( key || ref ) { if ( typeof props . $$typeof === 'undefined' || props . $$typeof !== REACT_ELEMENT_TYPE ) { var displayName = typeof type === 'function' ? type . displayName || type . name || 'Unknown' : type ; if ( key ) { defineKeyPropWarningGetter ( props , displayName ) ; } if ( ref ) { defineRefPropWarningGetter ( props , displayName ) ; } } } } return ReactElement ( type , key , ref , self , source , ReactCurrentOwner . current , props ) ; }
Create and return a new ReactElement of the given type.
Create and return a new ReactElement of the given type .
// Reserved names are extracted // Remaining properties are added to a new props object // Children can be more than one argument, and those are transferred onto // the newly allocated props object. // Resolve default props