Guest User

Untitled

a guest
Jul 1st, 2019
957
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. {
  2. "Console log": {
  3. "prefix": "col",
  4. "body": ["console.log('$1');", "$2"],
  5. "description": "Log output to console"
  6. },
  7. "Create a View element": {
  8. "prefix": "view",
  9. "body": ["<View>", "\t$1", "</View>"],
  10. "description": "Create a View element."
  11. },
  12. "Create a View STYLE element": {
  13. "prefix": "vs",
  14. "body": ["<View style={styles.$1}>", "\t$2", "</View>"],
  15. "description": "Create a View STYLE element."
  16. },
  17. "Create a Text STYLE element": {
  18. "prefix": "ts",
  19. "body": ["<Text style={styles.$1}>", "\t$2", "</Text>"],
  20. "description": "Create a Text STYLE element."
  21. },
  22. "Create a TouchableOpacity element": {
  23. "prefix": "to",
  24. "body": ["<TouchableOpacity>", "\t$1", "</TouchableOpacity>"],
  25. "description": "Create a TouchableOpacity element."
  26. },
  27. "Create a Text element": {
  28. "prefix": "text",
  29. "body": ["<Text>", "\t$1", "</Text>"],
  30. "description": "Create a Text element."
  31. },
  32. "Create a style attribute": {
  33. "prefix": "stl",
  34. "body": ["style={styles.$1}"],
  35. "description": "Creates a style attribute"
  36. },
  37. "Create icon": {
  38. "prefix": "icon",
  39. "body": ["<Icon name=\"$1\" size={25}/>"],
  40. "description": "Create an icon"
  41. },
  42. "Get all colors": {
  43. "prefix": "clr",
  44. "body": ["'#f0b323' '#7c878e' '#131e29' '#0f171f'"],
  45. "description": "Get all colors to pick"
  46. },
  47. "Input": {
  48. "prefix": "input",
  49. "body": ["<Input placeholder=\"$1\"/>"]
  50. },
  51. "Bred": {
  52. "prefix": "bred",
  53. "body": ["borderWidth: 1,", "borderColor: \"red\","]
  54. },
  55. "Justify content": {
  56. "prefix": "jcc",
  57. "body": "justifyContent: 'center',"
  58. },
  59. "Align Items": {
  60. "prefix": "aic",
  61. "body": "alignItems: 'center',"
  62. },
  63. "Flex Direction": {
  64. "prefix": "fdr",
  65. "body": "flexDirection: 'row',"
  66. },
  67. "From React Native": {
  68. "prefix": "frn",
  69. "body": "import { $1 } from 'react-native'"
  70. },
  71. "From Global Components": {
  72. "prefix": "fgc",
  73. "body": "import { $1 } from 'am.golf/native/global_components'"
  74. },
  75. "ssc": {
  76. "prefix": "ssc",
  77. "body": ["import { StyleSheet } from 'react-native';", "", "export default StyleSheet.create({", "\t$1", "});"]
  78. },
  79. "_cl": {
  80. "prefix": "_cl",
  81. "body": "console.log('$1', $2);"
  82. },
  83. "_cll": {
  84. "prefix": "_cll",
  85. "body": "console.log('$1', $2);"
  86. },
  87. "tss": {
  88. "prefix": "tss",
  89. "body": "this.setState({ $1 });"
  90. },
  91. "fas": {
  92. "prefix": "fas",
  93. "body": "import $1 from 'am.golf/native/assets/images/$2.png'"
  94. },
  95. "fim": {
  96. "prefix": "fim",
  97. "body": "import $1 from 'am.golf/native/assets/images/$2.png'"
  98. },
  99. "la": {
  100. "prefix": "la",
  101. "body": "LayoutAnimation.configureNext(LayoutAnimation.Presets.easeInEaseOut);"
  102. },
  103. "ffm": {
  104. "prefix": "ffm",
  105. "body": "fontFamily: 'MuliExtraBold',"
  106. },
  107. "util": {
  108. "prefix": "util",
  109. "body": "import * as util from 'ally/service/util';"
  110. },
  111. "cls": {
  112. "prefix": "cls",
  113. "body": [
  114. "import React from \"react\";",
  115. "",
  116. "export class $1 extends React.Component<any> {",
  117. "\trender() {",
  118. "\t\treturn (",
  119. "\t\t\t<View style={styles.$2}>",
  120. "\t\t\t\t$3",
  121. "\t\t\t</View>",
  122. "\t\t);",
  123. "\t}",
  124. "}"
  125. ]
  126. },
  127. "wh": {
  128. "prefix": "wh",
  129. "body": ["width: $1,", "height: $2,"]
  130. }
  131. }
RAW Paste Data