text: Object.defineProperty(exports,"__esModule",{value:true});exports.H1=undefined;var _extends=Object.assign||function(target){for(var i=1;i<arguments.length;i++){var source=arguments[i];for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){target[key]=source[key];}}}return target;};var _createClass=function(){function defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}return function(Constructor,protoProps,staticProps){if(protoProps)defineProperties(Constructor.prototype,protoProps);if(staticProps)defineProperties(Constructor,staticProps);return Constructor;};}();var _react=require('react');var _react2=_interopRequireDefault(_react);
  var _reactNative=require('react-native');
  
  var _nativeBaseShoutemTheme=require('native-base-shoutem-theme');
  var _mapPropsToStyleNames=require('../Utils/mapPropsToStyleNames');var _mapPropsToStyleNames2=_interopRequireDefault(_mapPropsToStyleNames);function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj};}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _possibleConstructorReturn(self,call){if(!self){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return call&&(typeof call==="object"||typeof call==="function")?call:self;}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function, not "+typeof superClass);}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:false,writable:true,configurable:true}});if(superClass)Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass;}var
  
  H1=function(_Component){_inherits(H1,_Component);function H1(){_classCallCheck(this,H1);return _possibleConstructorReturn(this,(H1.__proto__||Object.getPrototypeOf(H1)).apply(this,arguments));}_createClass(H1,[{key:'render',value:function render()
  {var _this2=this;
  return(
  _react2.default.createElement(_reactNative.Text,_extends({ref:function ref(c){return _this2._root=c;}},this.props)));
  
  }}]);return H1;}(_react.Component);
  
  
  var childrenType=function childrenType(props,propName,component){
  var error=void 0;
  var prop=props[propName];
  _react2.default.Children.forEach(prop,function(child){
  if(typeof child!=='string'){
  error=new Error(component+' should have only string');
  }
  });
  return error;
  };
  
  H1.propTypes=_extends({},
  _reactNative.Text.propTypes,{
  children:childrenType,
  style:_react2.default.PropTypes.object});
  
  
  var StyledH1=(0,_nativeBaseShoutemTheme.connectStyle)('NativeBase.H1',{},_mapPropsToStyleNames2.default)(H1);exports.
  
  
  H1=StyledH1;
  //# sourceMappingURL=H1.js.map