@questlabs/react-native-sdk
Version:
Quest react native sdk
137 lines (131 loc) • 3.15 kB
text/typescript
import { Dimensions, StyleSheet } from "react-native";
const screenWidth = Dimensions.get("window").width;
export const styles = StyleSheet.create({
loadingMainView: { flex: 1, justifyContent: "center", alignItems: "center" },
mainViewStyle: {
borderRadius: 12,
backgroundColor: "white",
width: "100%",
},
headerViewStyle: {
borderBottomWidth: 1,
padding: 20,
},
headerTextStyle: { fontSize: 18, fontWeight: "600" },
headerDescriptionTextView: { color: "#8E8E8E", fontWeight: "400" },
thumbButtonView: {
flex: 1,
paddingVertical: 12,
paddingHorizontal: 16,
borderRadius: 12,
borderWidth: 1,
justifyContent: "center",
alignItems: "center",
},
bottomText: {
fontSize: 12,
fontWeight: "400",
lineHeight: 16,
color: "#545454",
},
bottomTextView: {
flexDirection: "row",
justifyContent: "space-between",
alignItems: "center",
marginTop: 12,
},
footerView: {
display: "flex",
paddingVertical: 10,
paddingHorizontal: 20,
justifyContent: "center",
gap: 8,
alignSelf: "stretch",
backgroundColor: "#FBFBFB",
borderBottomStartRadius: 12,
borderBottomEndRadius: 12,
},
footerInnerView: {
display: "flex",
justifyContent: "space-between",
flexDirection: "row",
alignItems: "center",
},
footerText: {
fontSize: 12,
fontStyle: "normal",
fontWeight: "400",
lineHeight: 16,
color: "#B9B9B9",
},
modalOutterViewStyle: {
flex: 1,
justifyContent: "center",
alignItems: "center",
backgroundColor: "rgba(255, 255, 255, 0.5)",
padding: 20,
},
successFooterViewStyle: {
paddingVertical: 10,
paddingHorizontal: 20,
borderTopWidth: 1,
borderColor: "#EFEFEF",
},
successFooterTextStyle: {
fontSize: 12,
fontStyle: "normal",
fontWeight: "400",
lineHeight: 16,
color: "#B9B9B9",
textAlign: "center",
},
submitButtonViewStyle: {
paddingVertical: 10,
paddingHorizontal: 16,
borderRadius: 10,
backgroundColor: "#EFEFEF",
marginTop: 20,
borderColor: "#EFEFEF",
},
submitButtonTextStyle: {
color: "#2C2C2C",
fontSize: 14,
textAlign: "center",
fontWeight: "500",
lineHeight: 20,
},
successCrossViewStyle: { position: "absolute", top: 20, right: 20 },
successHeaderTextStyle: {
color: "#2C2C2C",
fontSize: 20,
fontWeight: "600",
lineHeight: 30,
textAlign: "center",
},
successDescriptionTextStyle: {
color: "#939393",
fontSize: 12,
fontWeight: "400",
lineHeight: 16,
textAlign: "center",
},
ImageViewStyle: {
alignItems: "center",
},
ImageTextstyle: {
maxHeight: 254,
maxWidth: 264,
height: screenWidth * 0.65,
width: screenWidth * 0.68,
},
midContainerViewStyles: {
paddingTop: 28,
paddingHorizontal: 20,
paddingBottom: 20,
},
successModalViewStyle: {
width: "100%",
backgroundColor: "#fff",
borderRadius: 10,
},
});