|
674 | 674 | "description": "React useCallback", |
675 | 675 | "scope": "javascript,typescript,javascriptreact,typescriptreact" |
676 | 676 | }, |
677 | | - "🟨 reactNativeFnComp": { |
678 | | - "prefix": "rnFC.$rnFC", |
679 | | - "body": [ |
680 | | - "import React from 'react'", |
681 | | - "import { View, Text } from 'react-native'", |
682 | | - "", |
683 | | - "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
684 | | - "\treturn (", |
685 | | - "\t\t<View>", |
686 | | - "\t\t\t<Text>${2:$1}</Text>", |
687 | | - "\t\t</View>", |
688 | | - "\t)", |
689 | | - "}", |
690 | | - "" |
691 | | - ], |
692 | | - "description": "React Native Functional Component", |
693 | | - "scope": "javascript,typescript,javascriptreact,typescriptreact" |
694 | | - }, |
695 | | - "🟨 reactNativeFnCompExport": { |
696 | | - "prefix": "rnFCe.$rnFCe", |
697 | | - "body": [ |
698 | | - "import React from 'react'", |
699 | | - "import { View, Text } from 'react-native'", |
700 | | - "", |
701 | | - "function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
702 | | - "\treturn (", |
703 | | - "\t\t<View>", |
704 | | - "\t\t\t<Text>${2:$1}</Text>", |
705 | | - "\t\t</View>", |
706 | | - "\t)", |
707 | | - "}", |
708 | | - "", |
709 | | - "export default $1", |
710 | | - "" |
711 | | - ], |
712 | | - "description": "React Native Functional Component", |
713 | | - "scope": "javascript,typescript,javascriptreact,typescriptreact" |
714 | | - }, |
715 | | - "🟨 reactNativeArrowFnComp": { |
716 | | - "prefix": "rnAFC.$rnAFC", |
717 | | - "body": [ |
718 | | - "import React from 'react'", |
719 | | - "import { View, Text } from 'react-native'", |
720 | | - "", |
721 | | - "export const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
722 | | - "\treturn (", |
723 | | - "\t\t<View>", |
724 | | - "\t\t\t<Text>${2:$1}</Text>", |
725 | | - "\t\t</View>", |
726 | | - "\t)", |
727 | | - "}", |
728 | | - "" |
729 | | - ], |
730 | | - "description": "React Native Arrow Function Component", |
731 | | - "scope": "javascript,typescript,javascriptreact,typescriptreact" |
732 | | - }, |
733 | | - "🟨 reactNativeArrowFnCompExport": { |
734 | | - "prefix": "rnAFCe.$rnAFCe", |
735 | | - "body": [ |
736 | | - "import React from 'react'", |
737 | | - "import { View, Text } from 'react-native'", |
738 | | - "", |
739 | | - "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
740 | | - "\treturn (", |
741 | | - "\t\t<View>", |
742 | | - "\t\t\t<Text>${2:$1}</Text>", |
743 | | - "\t\t</View>", |
744 | | - "\t)", |
745 | | - "}", |
746 | | - "", |
747 | | - "export default $1", |
748 | | - "" |
749 | | - ], |
750 | | - "description": "React Native Arrow Function Component", |
751 | | - "scope": "javascript,typescript,javascriptreact,typescriptreact" |
752 | | - }, |
753 | 677 | "🟨 nextSSR": { |
754 | 678 | "prefix": "nSSR.$nSSR.getServerSideProps", |
755 | 679 | "body": [ |
|
1015 | 939 | "description": "Next.js getStaticPaths arrow function", |
1016 | 940 | "scope": "javascript,typescript,javascriptreact,typescriptreact" |
1017 | 941 | }, |
| 942 | + "🟨 reactNativeFnComp": { |
| 943 | + "prefix": "rnFC.$rnFC", |
| 944 | + "body": [ |
| 945 | + "import React from 'react'", |
| 946 | + "import { View, Text } from 'react-native'", |
| 947 | + "", |
| 948 | + "export default function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 949 | + "\treturn (", |
| 950 | + "\t\t<View>", |
| 951 | + "\t\t\t<Text>${2:$1}</Text>", |
| 952 | + "\t\t</View>", |
| 953 | + "\t)", |
| 954 | + "}", |
| 955 | + "" |
| 956 | + ], |
| 957 | + "description": "React Native Functional Component", |
| 958 | + "scope": "javascript,typescript,javascriptreact,typescriptreact" |
| 959 | + }, |
| 960 | + "🟨 reactNativeFnCompExport": { |
| 961 | + "prefix": "rnFCe.$rnFCe", |
| 962 | + "body": [ |
| 963 | + "import React from 'react'", |
| 964 | + "import { View, Text } from 'react-native'", |
| 965 | + "", |
| 966 | + "function ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}}() {$0", |
| 967 | + "\treturn (", |
| 968 | + "\t\t<View>", |
| 969 | + "\t\t\t<Text>${2:$1}</Text>", |
| 970 | + "\t\t</View>", |
| 971 | + "\t)", |
| 972 | + "}", |
| 973 | + "", |
| 974 | + "export default $1", |
| 975 | + "" |
| 976 | + ], |
| 977 | + "description": "React Native Functional Component", |
| 978 | + "scope": "javascript,typescript,javascriptreact,typescriptreact" |
| 979 | + }, |
| 980 | + "🟨 reactNativeArrowFnComp": { |
| 981 | + "prefix": "rnAFC.$rnAFC", |
| 982 | + "body": [ |
| 983 | + "import React from 'react'", |
| 984 | + "import { View, Text } from 'react-native'", |
| 985 | + "", |
| 986 | + "export const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 987 | + "\treturn (", |
| 988 | + "\t\t<View>", |
| 989 | + "\t\t\t<Text>${2:$1}</Text>", |
| 990 | + "\t\t</View>", |
| 991 | + "\t)", |
| 992 | + "}", |
| 993 | + "" |
| 994 | + ], |
| 995 | + "description": "React Native Arrow Function Component", |
| 996 | + "scope": "javascript,typescript,javascriptreact,typescriptreact" |
| 997 | + }, |
| 998 | + "🟨 reactNativeArrowFnCompExport": { |
| 999 | + "prefix": "rnAFCe.$rnAFCe", |
| 1000 | + "body": [ |
| 1001 | + "import React from 'react'", |
| 1002 | + "import { View, Text } from 'react-native'", |
| 1003 | + "", |
| 1004 | + "const ${1:${RELATIVE_FILEPATH/(^.+?(?=[\\/\\\\][^\\/\\\\]+[\\/\\\\][^\\/\\\\]+\\.[jt]sx?))|(\\.[jt]sx?$|[\\/\\\\](?:index|\\[).*|.+[\\/\\\\](?!(?:index|\\[))|[.\\-_\\/\\\\])|(\\w+)/${3:/capitalize}/g}} = () => {$0", |
| 1005 | + "\treturn (", |
| 1006 | + "\t\t<View>", |
| 1007 | + "\t\t\t<Text>${2:$1}</Text>", |
| 1008 | + "\t\t</View>", |
| 1009 | + "\t)", |
| 1010 | + "}", |
| 1011 | + "", |
| 1012 | + "export default $1", |
| 1013 | + "" |
| 1014 | + ], |
| 1015 | + "description": "React Native Arrow Function Component", |
| 1016 | + "scope": "javascript,typescript,javascriptreact,typescriptreact" |
| 1017 | + }, |
1018 | 1018 | "🟨 reactRouterUseParams": { |
1019 | 1019 | "prefix": "rou.$rou.useParams", |
1020 | 1020 | "body": [ |
|
0 commit comments