Fix some React Native snippets

This commit is contained in:
Seong Yong-ju 2019-12-25 22:58:21 +09:00
parent f52190f3e4
commit 582d0a8d7c
5 changed files with 12 additions and 12 deletions

View File

@ -8,11 +8,11 @@
import React, { Component } from 'react'
import { Text, View } from 'react-native'
export default class ${1:${TM_FILENAME_BASE}} extends Component {
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
render() {
return (
<View>
<Text> ${2:textInComponent} </Text>
<Text>${2:textInComponent}</Text>
</View>
)
}

View File

@ -8,14 +8,14 @@
import React, { Component } from 'react'
import { Text, View } from 'react-native'
export class ${1:${TM_FILENAME_BASE}} extends Component {
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
render() {
return (
<View>
<Text> ${2:textInComponent} </Text>
<Text>${2:textInComponent}</Text>
</View>
)
}
}
export default ${1:${TM_FILENAME_BASE}}
export default $1

View File

@ -8,11 +8,11 @@
import React, { Component } from 'react'
import { Text, StyleSheet, View } from 'react-native'
export default class ${1:${TM_FILENAME_BASE}} extends Component {
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
render() {
return (
<View>
<Text> ${2:textInComponent} </Text>
<Text>${2:textInComponent}</Text>
</View>
)
}

View File

@ -8,11 +8,11 @@
import React, { PureComponent } from 'react'
import { Text, View } from 'react-native'
export default class ${1:${TM_FILENAME_BASE}} extends PureComponent {
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends PureComponent {
render() {
return (
<View>
<Text> ${2:textInComponent} </Text>
<Text>${2:textInComponent}</Text>
</View>
)
}

View File

@ -8,14 +8,14 @@
import React, { PureComponent } from 'react'
import { Text, View } from 'react-native'
export class ${1:${TM_FILENAME_BASE}} extends PureComponent {
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends PureComponent {
render() {
return (
<View>
<Text> ${2:textInComponent} </Text>
<Text>${2:textInComponent}</Text>
</View>
)
}
}
export default ${1:${TM_FILENAME_BASE}}
export default $1