Nikatlas 5 jaren geleden
bovenliggende
commit
587f3a124f
2 gewijzigde bestanden met toevoegingen van 7 en 4 verwijderingen
  1. 0 1
      dist/modules/Text/index.js
  2. 7 3
      modules/Text/index.js

File diff suppressed because it is too large
+ 0 - 1
dist/modules/Text/index.js


+ 7 - 3
modules/Text/index.js

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

Some files were not shown because too many files changed in this diff