0
3
llucycodes42
The code imports View and Text from React Native. It also declares a variable, ${1:filename} . The ${1:filename} variable will be used to bind a function to an object. The function will be used to render a View component. The View component will have a Text component as its child. The ${1:filename} variable will be used in the function to refer to the child Text component.
Library: react
Shortcut: tsrnf
import { View, Text } from 'react-native'
import React from 'react'
type Props = {}
const ${1:filename} = (props: Props) => {
return (
<View>
<Text>first</Text>
</View>
)
}
export default ${1:filename}