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,7 +8,7 @@
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>

View File

@ -8,7 +8,7 @@
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>
@ -18,4 +18,4 @@ export class ${1:${TM_FILENAME_BASE}} extends Component {
}
}
export default ${1:${TM_FILENAME_BASE}}
export default $1

View File

@ -8,7 +8,7 @@
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>

View File

@ -8,7 +8,7 @@
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>

View File

@ -8,7 +8,7 @@
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>
@ -18,4 +18,4 @@ export class ${1:${TM_FILENAME_BASE}} extends PureComponent {
}
}
export default ${1:${TM_FILENAME_BASE}}
export default $1