19 lines
445 B
Plaintext
19 lines
445 B
Plaintext
# -*- mode: snippet -*-
|
|
# uuid: c4aa3b3e-82af-434b-acc5-b08bf018e0aa
|
|
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
|
# name: reactNativeComponent
|
|
# key: rnc
|
|
# --
|
|
|
|
import React, { Component } from 'react'
|
|
import { Text, View } from 'react-native'
|
|
|
|
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
|
|
render() {
|
|
return (
|
|
<View>
|
|
<Text>${2:textInComponent}</Text>
|
|
</View>
|
|
)
|
|
}
|
|
} |