|
@@ -15,11 +15,13 @@ export default class TextComp extends Module {
|
|
let {
|
|
let {
|
|
text,
|
|
text,
|
|
color,
|
|
color,
|
|
- fontSize
|
|
|
|
|
|
+ fontSize,
|
|
|
|
+ fontFamily,
|
|
|
|
+ textAlign
|
|
} = this.props;
|
|
} = this.props;
|
|
return (
|
|
return (
|
|
<View>
|
|
<View>
|
|
- <Text style={{color, fontSize}}>
|
|
|
|
|
|
+ <Text style={{color, fontSize,fontFamily,textAlign}}>
|
|
{text}
|
|
{text}
|
|
</Text>
|
|
</Text>
|
|
{this.props.children}
|
|
{this.props.children}
|
|
@@ -31,5 +33,7 @@ export default class TextComp extends Module {
|
|
TextComp.Inputs = {
|
|
TextComp.Inputs = {
|
|
text: new Types.Text().default("Enter Text"),
|
|
text: new Types.Text().default("Enter Text"),
|
|
color: new Types.Text(),
|
|
color: new Types.Text(),
|
|
- fontSize: new Types.Integer().default(22)
|
|
|
|
|
|
+ fontSize: new Types.Integer().default(22),
|
|
|
|
+ fontFamily: new Types.Text(),
|
|
|
|
+ textAlign: new Types.Text()
|
|
}
|
|
}
|