init
This commit is contained in:
21
snippets/rjsx-mode/React-Native/rncs
Normal file
21
snippets/rjsx-mode/React-Native/rncs
Normal file
@@ -0,0 +1,21 @@
|
||||
# -*- 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'
|
||||
|
||||
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
|
||||
render() {
|
||||
return (
|
||||
<View>
|
||||
<Text>${2:textInComponent}</Text>
|
||||
</View>
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
const styles = StyleSheet.create({})
|
||||
Reference in New Issue
Block a user