Skip to content

Commit 582d0a8

Browse files
committed
Fix some React Native snippets
1 parent f52190f commit 582d0a8

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

snippets/rjsx-mode/React-Native/rnc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import React, { Component } from 'react'
99
import { Text, View } from 'react-native'
1010

11-
export default class ${1:${TM_FILENAME_BASE}} extends Component {
11+
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
1212
render() {
1313
return (
1414
<View>
15-
<Text> ${2:textInComponent} </Text>
15+
<Text>${2:textInComponent}</Text>
1616
</View>
1717
)
1818
}

snippets/rjsx-mode/React-Native/rnce

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
import React, { Component } from 'react'
99
import { Text, View } from 'react-native'
1010

11-
export class ${1:${TM_FILENAME_BASE}} extends Component {
11+
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
1212
render() {
1313
return (
1414
<View>
15-
<Text> ${2:textInComponent} </Text>
15+
<Text>${2:textInComponent}</Text>
1616
</View>
1717
)
1818
}
1919
}
2020

21-
export default ${1:${TM_FILENAME_BASE}}
21+
export default $1

snippets/rjsx-mode/React-Native/rncs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import React, { Component } from 'react'
99
import { Text, StyleSheet, View } from 'react-native'
1010

11-
export default class ${1:${TM_FILENAME_BASE}} extends Component {
11+
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends Component {
1212
render() {
1313
return (
1414
<View>
15-
<Text> ${2:textInComponent} </Text>
15+
<Text>${2:textInComponent}</Text>
1616
</View>
1717
)
1818
}

snippets/rjsx-mode/React-Native/rnpc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
import React, { PureComponent } from 'react'
99
import { Text, View } from 'react-native'
1010

11-
export default class ${1:${TM_FILENAME_BASE}} extends PureComponent {
11+
export default class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends PureComponent {
1212
render() {
1313
return (
1414
<View>
15-
<Text> ${2:textInComponent} </Text>
15+
<Text>${2:textInComponent}</Text>
1616
</View>
1717
)
1818
}

snippets/rjsx-mode/React-Native/rnpce

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@
88
import React, { PureComponent } from 'react'
99
import { Text, View } from 'react-native'
1010

11-
export class ${1:${TM_FILENAME_BASE}} extends PureComponent {
11+
export class ${1:`(yas-jsx-get-class-name-by-file-name)`} extends PureComponent {
1212
render() {
1313
return (
1414
<View>
15-
<Text> ${2:textInComponent} </Text>
15+
<Text>${2:textInComponent}</Text>
1616
</View>
1717
)
1818
}
1919
}
2020

21-
export default ${1:${TM_FILENAME_BASE}}
21+
export default $1

0 commit comments

Comments
 (0)