|
@@ -13,26 +13,23 @@ export default class TextComp extends Module {
|
|
|
|
|
|
display() {
|
|
|
let {
|
|
|
+ text,
|
|
|
color,
|
|
|
fontSize
|
|
|
} = this.props;
|
|
|
return (
|
|
|
<View>
|
|
|
- <TextInput
|
|
|
- style={{color, fontSize}]}
|
|
|
- onChangeText={(text) => this.setState({
|
|
|
- text
|
|
|
- })}
|
|
|
- value={this.state.text || 'Default Text'}/>
|
|
|
-
|
|
|
- {this.props.children}
|
|
|
-
|
|
|
+ <Text style={{color, fontSize}}>
|
|
|
+ {text}
|
|
|
+ </Text>
|
|
|
+ {this.props.children}
|
|
|
</View>)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
|
|
|
TextComp.Inputs = {
|
|
|
+ text: new Types.Text(),
|
|
|
color: new Types.Text(),
|
|
|
fontSize: new Types.Integer().default(22)
|
|
|
}
|