diff --git a/snippets/snippets.json b/snippets/snippets.json index 6c4f69d..1c8d4b3 100644 --- a/snippets/snippets.json +++ b/snippets/snippets.json @@ -948,6 +948,26 @@ "" ] }, + "reactNativeArrowFunctionComponentWithStyles": { + "prefix": "rnfs", + "body": [ + "import React from 'react'", + "import { View, Text, StyleSheet } from 'react-native'", + "", + "const ${1:${TM_FILENAME_BASE}} = () => {", + "\treturn (", + "\t\t", + "\t\t\t$0", + "\t\t", + "\t)", + "}", + "", + "const styles = StyleSheet.create({})", + "", + "export default ${1:${TM_FILENAME_BASE}}", + "" + ] + }, "reactNativeImport": { "prefix": "imrn", "body": "import { ${1:moduleName} } from 'react-native'"