"use strict";var _interopRequireDefault=require("@babel/runtime/helpers/interopRequireDefault");Object.defineProperty(exports,"__esModule",{value:true});exports["default"]=void 0;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 _react=_interopRequireDefault(require("react"));var _Module2=_interopRequireDefault(require("../lib/Module"));var _reactNative=require("react-native");var _jsxFileName="C:\\Users\\Karteri\\Desktop\\Development\\TrapiLib\\modules\\Text.js";var TextComp=function(_Module){(0,_inherits2["default"])(TextComp,_Module);function TextComp(props){var _this;(0,_classCallCheck2["default"])(this,TextComp);_this=(0,_possibleConstructorReturn2["default"])(this,(0,_getPrototypeOf2["default"])(TextComp).call(this,props));_this.state={text:props.text||""};return _this;}(0,_createClass2["default"])(TextComp,[{key:"display",value:function display(){var _this2=this;var _ref=this.props.style||"",container=_ref.container,text=_ref.text;return _react["default"].createElement(_reactNative.View,{style:container||defaultStyle.container,__source:{fileName:_jsxFileName,lineNumber:16}},_react["default"].createElement(_reactNative.TextInput,{style:text||defaultStyle.text,onChangeText:function onChangeText(text){return _this2.setState({text:text});},value:this.state.text||'Default Text',__source:{fileName:_jsxFileName,lineNumber:17}}),this.props.children);}}]);return TextComp;}(_Module2["default"]);exports["default"]=TextComp;var defaultStyle=_reactNative.StyleSheet.create({container:{borderWidth:0.5,borderColor:'#E4E4E4',backgroundColor:'#FFFFFF'},text:{color:'#707070',textAlign:'center',font:8,opacity:0.8}});