text: var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");var _interopRequireWildcard=require("@babel/runtime/helpers/interopRequireWildcard");Object.defineProperty(exports,"__esModule",{value:true});exports.default=void 0;var _extends2=_interopRequireDefault(require("@babel/runtime/helpers/extends"));var _defineProperty2=_interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));var _objectWithoutProperties2=_interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));var _classCallCheck2=_interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));var _createClass2=_interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _possibleConstructorReturn2=_interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));var _getPrototypeOf2=_interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));var _inherits2=_interopRequireDefault(require("@babel/runtime/helpers/inherits"));var _color=_interopRequireDefault(require("color"));var React=_interopRequireWildcard(require("react"));var _reactNative=require("react-native");var _Text=_interopRequireDefault(require("./Text"));var _theming=require("../../core/theming");var _jsxFileName="/Users/trensik/dev/react-native-paper/src/components/Typography/StyledText.tsx";function ownKeys(object,enumerableOnly){var keys=Object.keys(object);if(Object.getOwnPropertySymbols){var symbols=Object.getOwnPropertySymbols(object);if(enumerableOnly)symbols=symbols.filter(function(sym){return Object.getOwnPropertyDescriptor(object,sym).enumerable;});keys.push.apply(keys,symbols);}return keys;}function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};if(i%2){ownKeys(Object(source),true).forEach(function(key){(0,_defineProperty2.default)(target,key,source[key]);});}else if(Object.getOwnPropertyDescriptors){Object.defineProperties(target,Object.getOwnPropertyDescriptors(source));}else{ownKeys(Object(source)).forEach(function(key){Object.defineProperty(target,key,Object.getOwnPropertyDescriptor(source,key));});}}return target;}var StyledText=function(_React$Component){(0,_inherits2.default)(StyledText,_React$Component);function StyledText(){(0,_classCallCheck2.default)(this,StyledText);return(0,_possibleConstructorReturn2.default)(this,(0,_getPrototypeOf2.default)(StyledText).apply(this,arguments));}(0,_createClass2.default)(StyledText,[{key:"render",value:function render(){var _this$props=this.props,theme=_this$props.theme,alpha=_this$props.alpha,family=_this$props.family,style=_this$props.style,rest=(0,_objectWithoutProperties2.default)(_this$props,["theme","alpha","family","style"]);var textColor=(0,_color.default)(theme.colors.text).alpha(alpha).rgb().string();var font=theme.fonts[family];var writingDirection=_reactNative.I18nManager.isRTL?'rtl':'ltr';return React.createElement(_Text.default,(0,_extends2.default)({},rest,{style:[_objectSpread({color:textColor},font,{textAlign:'left',writingDirection:writingDirection}),style,this.props.style],__source:{fileName:_jsxFileName,lineNumber:27}}));}}]);return StyledText;}(React.Component);var _default=(0,_theming.withTheme)(StyledText);exports.default=_default;
  //# sourceMappingURL=StyledText.js.map