|
1015 | 1015 | ], |
1016 | 1016 | "description": "Creates a React Native component class with PropTypes with connected redux and ES7 module system" |
1017 | 1017 | }, |
1018 | | - "reactNativeArrowFunctionComponent": { |
1019 | | - "prefix": "rnf", |
| 1018 | + "reactNativeFunctionalExportComponent": { |
| 1019 | + "prefix": "rnfe", |
1020 | 1020 | "body": [ |
1021 | 1021 | "import React from 'react'", |
1022 | 1022 | "import { View, Text } from 'react-native'", |
|
1033 | 1033 | "" |
1034 | 1034 | ] |
1035 | 1035 | }, |
1036 | | - "reactNativeArrowFunctionComponentWithStyles": { |
1037 | | - "prefix": "rnfs", |
| 1036 | + "reactNativeFunctionalExportComponentWithStyles": { |
| 1037 | + "prefix": "rnfes", |
1038 | 1038 | "body": [ |
1039 | 1039 | "import React from 'react'", |
1040 | 1040 | "import { StyleSheet, Text, View } from 'react-native'", |
|
1053 | 1053 | "" |
1054 | 1054 | ] |
1055 | 1055 | }, |
| 1056 | + "reactNativeFunctionalComponent": { |
| 1057 | + "prefix": "rnf", |
| 1058 | + "body": [ |
| 1059 | + "import React from 'react'", |
| 1060 | + "import { View, Text } from 'react-native'", |
| 1061 | + "", |
| 1062 | + "export default function ${1:${TM_FILENAME_BASE}}() {", |
| 1063 | + "\treturn (", |
| 1064 | + "\t\t<View>", |
| 1065 | + "\t\t\t<Text>$0</Text>", |
| 1066 | + "\t\t</View>", |
| 1067 | + "\t)", |
| 1068 | + "}", |
| 1069 | + "" |
| 1070 | + ] |
| 1071 | + }, |
| 1072 | + "reactNativeFunctionalComponentWithStyles": { |
| 1073 | + "prefix": "rnfs", |
| 1074 | + "body": [ |
| 1075 | + "import React from 'react'", |
| 1076 | + "import { StyleSheet, Text, View } from 'react-native'", |
| 1077 | + "", |
| 1078 | + "export default function ${1:${TM_FILENAME_BASE}}() {", |
| 1079 | + "\treturn (", |
| 1080 | + "\t\t<View>", |
| 1081 | + "\t\t\t<Text>$0</Text>", |
| 1082 | + "\t\t</View>", |
| 1083 | + "\t)", |
| 1084 | + "}", |
| 1085 | + "", |
| 1086 | + "const styles = StyleSheet.create({})", |
| 1087 | + "" |
| 1088 | + ] |
| 1089 | + }, |
1056 | 1090 | "reactNativeImport": { |
1057 | 1091 | "prefix": "imrn", |
1058 | 1092 | "body": "import { ${1:moduleName} } from 'react-native'" |
|
0 commit comments