Guest User

Untitled

a guest
Dec 16th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.52 KB | None | 0 0
  1. export default StyleSheet.create({
  2. ...ApplicationStyles.screen,
  3. container: {
  4. paddingBottom: Metrics.baseMargin
  5. },
  6. centered: {
  7. flex: 1,
  8. justifyContent: "center",
  9. alignItems: "center"
  10. }
  11. });
  12.  
  13. const ApplicationStyles = {
  14. screen: {
  15. mainContainer: {
  16. flex: 1,
  17. backgroundColor: Colors.transparent
  18. },
  19. backgroundImage: {
  20. position: "absolute",
  21. top: 0,
  22. left: 0,
  23. bottom: 0,
  24. right: 0
  25. },
  26. container: {
  27. flex: 1,
  28. paddingTop: Metrics.baseMargin,
  29. backgroundColor: Colors.transparent
  30. },
  31. section: {
  32. margin: Metrics.section,
  33. padding: Metrics.baseMargin
  34. },
  35. sectionText: {
  36. ...Fonts.style.normal,
  37. paddingVertical: Metrics.doubleBaseMargin,
  38. color: Colors.snow,
  39. marginVertical: Metrics.smallMargin,
  40. textAlign: "center"
  41. },
  42. subtitle: {
  43. color: Colors.snow,
  44. padding: Metrics.smallMargin,
  45. marginBottom: Metrics.smallMargin,
  46. marginHorizontal: Metrics.smallMargin
  47. },
  48. titleText: {
  49. ...Fonts.style.h2,
  50. fontSize: 14,
  51. color: Colors.text
  52. }
  53. },
  54. darkLabelContainer: {
  55. padding: Metrics.smallMargin,
  56. paddingBottom: Metrics.doubleBaseMargin,
  57. borderBottomColor: Colors.border,
  58. borderBottomWidth: 1,
  59. marginBottom: Metrics.baseMargin
  60. },
  61. darkLabel: {
  62. fontFamily: Fonts.type.bold,
  63. color: Colors.snow
  64. },
  65. groupContainer: {
  66. margin: Metrics.smallMargin,
  67. flexDirection: "row",
  68. justifyContent: "space-around",
  69. alignItems: "center"
  70. },
  71. sectionTitle: {
  72. ...Fonts.style.h4,
  73. color: Colors.coal,
  74. backgroundColor: Colors.ricePaper,
  75. padding: Metrics.smallMargin,
  76. marginTop: Metrics.smallMargin,
  77. marginHorizontal: Metrics.baseMargin,
  78. borderWidth: 1,
  79. borderColor: Colors.ember,
  80. alignItems: "center",
  81. textAlign: "center"
  82. }
  83. };
  84.  
  85. export default ApplicationStyles;
  86.  
  87. import React, { Component } from "react";
  88. import { View, Text } from "react-native";
  89.  
  90. // Styles
  91. import styles from "./Styles/LoginScreenStyles";
  92.  
  93. export default class LoginScreen extends Component {
  94. render() {
  95. return (
  96. <View style={styles.mainContainer}>
  97. <Text style={styles.centered}>
  98. This probably isn't what your app is going to look like. Unless your
  99. designer handed you this screen and, in that case, congrats! You're
  100. ready to ship. For everyone else, this is where you'll see a live
  101. preview of your fully functioning app using Ignite.
  102. </Text>
  103. </View>
  104. );
  105. }
  106. }
Add Comment
Please, Sign In to add comment