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

21 lines
506 B
Plaintext
Raw Normal View History

2019-02-28 21:03:22 +01:00
# -*- mode: snippet -*-
# uuid: 6a9c7016-01b0-4c5c-84d6-28a688d81a4b
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
# name: reactNativeComponentWithStyles
# key: rncs
# --
import React, { Component } from 'react'
import { Text, StyleSheet, View } from 'react-native'
2019-12-25 14:58:21 +01:00
export default 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-02-28 21:36:05 +01:00
const styles = StyleSheet.create({})