yasnippet-snippets/snippets/rjsx-mode/React-Native/rnce

21 lines
463 B
Plaintext
Raw Normal View History

2019-02-28 21:03:22 +01:00
# -*- mode: snippet -*-
# uuid: 27262af6-b8a7-4165-bbfb-815f62eb3d4f
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
# name: reactNativeComponentExport
# key: rnce
# --
import React, { Component } from 'react'
import { Text, View } from 'react-native'
2019-12-25 14:58:21 +01:00
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
2019-02-28 21:03:22 +01:00
render() {
return (
<View>
2019-12-25 14:58:21 +01:00
<Text>${2:textInComponent}</Text>
2019-02-28 21:03:22 +01:00
</View>
)
}
}
2019-12-25 14:58:21 +01:00
export default $1