init
This commit is contained in:
21
snippets/rjsx-mode/React-Native/rnpce
Normal file
21
snippets/rjsx-mode/React-Native/rnpce
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- mode: snippet -*-
|
||||
# uuid: b36666f2-3ac6-4ee7-9f17-b32d82705306
|
||||
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
||||
# name: reactNativePureComponentExport
|
||||
# key: rnpce
|
||||
# --
|
||||
|
||||
import React, { PureComponent } from 'react'
|
||||
import { Text, View } from 'react-native'
|
||||
|
||||
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends PureComponent {
|
||||
render() {
|
||||
return (
|
||||
<View>
|
||||
<Text>${2:textInComponent}</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
export default $1
|
||||
Reference in New Issue
Block a user