Skip to content

Commit 0ea4b38

Browse files
committed
Update React Native Functional Component import
1 parent e1fa232 commit 0ea4b38

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

snippets/snippets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@
610610
"prefix": "rnfc",
611611
"body": [
612612
"import React from 'react';",
613-
"import { View } from 'react-native';",
613+
"import { View, Text } from 'react-native';",
614614
"",
615615
"export default function ${1:componentName}() {",
616616
" return (",

snippets/types/react-native.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
"prefix": "rnfc",
7575
"body": [
7676
"import React from 'react';",
77-
"import { View } from 'react-native';",
77+
"import { View, Text } from 'react-native';",
7878
"",
7979
"export default function ${1:componentName}() {",
8080
" return (",

0 commit comments

Comments
 (0)