init
This commit is contained in:
19
snippets/rjsx-mode/React-Native/rnc
Normal file
19
snippets/rjsx-mode/React-Native/rnc
Normal file
@@ -0,0 +1,19 @@
|
||||
# -*- 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>
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user