|
@@ -5,8 +5,7 @@ import Types from '../../lib/Types';
|
|
import {Button} from 'react-native-elements'
|
|
import {Button} from 'react-native-elements'
|
|
import Styles from './styles';
|
|
import Styles from './styles';
|
|
|
|
|
|
-console.log("WHATTTTTTTTTTTTTTTTT")
|
|
|
|
-console.log(Styles)
|
|
|
|
|
|
+
|
|
|
|
|
|
export default class ButtonComp extends Module {
|
|
export default class ButtonComp extends Module {
|
|
constructor(props) {
|
|
constructor(props) {
|
|
@@ -23,6 +22,7 @@ export default class ButtonComp extends Module {
|
|
height,
|
|
height,
|
|
borderRadius,
|
|
borderRadius,
|
|
FontSize,
|
|
FontSize,
|
|
|
|
+ fontFamily,
|
|
backgroundColor
|
|
backgroundColor
|
|
} = this.props;
|
|
} = this.props;
|
|
return (
|
|
return (
|
|
@@ -30,7 +30,7 @@ export default class ButtonComp extends Module {
|
|
onPress = {this.props.press || this.press}
|
|
onPress = {this.props.press || this.press}
|
|
title={title || "submit"}
|
|
title={title || "submit"}
|
|
accessibilityLabel="Learn more about this purple button"
|
|
accessibilityLabel="Learn more about this purple button"
|
|
- titleStyle = {{color:textColor,fontSize:FontSize}}
|
|
|
|
|
|
+ titleStyle = {{color:textColor,fontSize:FontSize,fontFamily:fontFamily}}
|
|
buttonStyle = {{backgroundColor:backgroundColor,width:width,height:height,borderRadius:borderRadius}}
|
|
buttonStyle = {{backgroundColor:backgroundColor,width:width,height:height,borderRadius:borderRadius}}
|
|
/>
|
|
/>
|
|
)
|
|
)
|
|
@@ -40,10 +40,11 @@ export default class ButtonComp extends Module {
|
|
|
|
|
|
ButtonComp.Inputs = {
|
|
ButtonComp.Inputs = {
|
|
title: new Types.Text().require().default('Submit'),
|
|
title: new Types.Text().require().default('Submit'),
|
|
- textColor: new Types.Text().require().color().default('black'),
|
|
|
|
- backgroundColor: new Types.Text().require().color().default('rgba(47, 150, 145, 1)'),
|
|
|
|
- borderRadius: new Types.Integer().require(),
|
|
|
|
- FontSize: new Types.Integer().require(),
|
|
|
|
|
|
+ fontFamily : new Types.Text().require().default('Light'),
|
|
|
|
+ textColor: new Types.Text().require().color().default('rgba(255, 255, 255, 1)'),
|
|
|
|
+ backgroundColor: new Types.Text().require().color().default('rgba(73, 156, 219, 1)'),
|
|
|
|
+ borderRadius: new Types.Integer().require().default(0),
|
|
|
|
+ FontSize: new Types.Integer().require().default(18),
|
|
width: new Types.Integer().require(),
|
|
width: new Types.Integer().require(),
|
|
height: new Types.Integer().require()
|
|
height: new Types.Integer().require()
|
|
}
|
|
}
|