-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFormButton.js
39 lines (37 loc) · 1.25 KB
/
FormButton.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import React from "react";
import { View, Text, TouchableOpacity, StyleSheet } from "react-native";
import { windowHeight, windowWidth } from "../utils/Dimensions";
import { icons, COLORS, SIZES, FONTS } from '../constants'
const FormButton = ({ buttonTitle, ...rest}) => {
return (
<TouchableOpacity
style={{
width: SIZES.width * 0.9,
height: windowHeight / 15,
padding: SIZES.padding,
marginBottom:windowHeight/100,
backgroundColor: COLORS.primary,
alignItems: 'center',
borderRadius: SIZES.radius
}}
{...rest}
>
<Text style={{ color: COLORS.white,fontSize: windowHeight/40 , fontFamily: FONTS.h2.fontFamily, fontWeight: "bold" }}>{buttonTitle}</Text>
</TouchableOpacity>
);
};
export default FormButton;
const styles = StyleSheet.create({
buttonContainer: {
fontFamily: FONTS.body1.fontFamily,
width: SIZES.width * 0.9,
padding: SIZES.padding,
backgroundColor: COLORS.primary,
alignItems: 'center',
borderRadius: SIZES.radius,
marginTop: 10,
width: '100%',
height: windowHeight / 15,
justifyContent: 'center',
},
});