Fix some React Native snippets
This commit is contained in:
parent
f52190f3e4
commit
582d0a8d7c
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue