Skip to content

Commit

Permalink
Addressed PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
btcalls committed Feb 23, 2018
1 parent 26dcb82 commit c6171f4
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions snippets/snippets.cson
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Generated with Atomizr - https://github.com/idleberg/atomizr.rb
'.source.jssource.jsx':
'.source.js,source.jsx':
'componentDidMount()':
'prefix': 'cdm'
'body': """
Expand All @@ -14,25 +14,25 @@
'prefix': 'rnstf'
'body': """
\'use strict\';
import React from \'react\';
import {
${4},
} from \'react-native\';
const ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}} = (props) => {
render() {
return (
${3:<View />}
);
}
}
const styles = StyleSheet.create({
});
export default ${2:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}};$0
"""
'React.PropTypes.':
Expand All @@ -57,9 +57,9 @@
'body': """
/* @flow */
\'use strict\';
import { StyleSheet } from \'react-native\';
module.exports = StyleSheet.create({
${1}: ${2},
});$0
Expand All @@ -76,7 +76,7 @@
'body': """
constructor(props) {
super(props);
this.state = {};
}$0
"""
Expand Down Expand Up @@ -220,7 +220,7 @@
/>
${4}$0
"""
'justifyContent: 'center',':
'justifyContent: \'center\',':
'prefix': 'jc'
'body': 'justifyContent: \'${1:center}\',$0'
'componentWillMount()':
Expand All @@ -234,30 +234,30 @@
'prefix': 'rncc'
'body': """
\'use strict\';
import React, { Component } from \'react\';
import {
StyleSheet,
View,
} from \'react-native\';
class ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}} extends Component {
render() {
return (
${2:<View />}
);
}
}
const styles = StyleSheet.create({
});
export default ${1:${TM_FILENAME/(.+)\..+|.*/$1/:MyComponent}};$0
"""
'alignItems: 'center',':
'alignItems: \'center\',':
'prefix': 'ai'
'body': 'alignItems: \'${1:center}\',$0'
'componentWillReceiveProps(object nextProps)':
Expand Down

0 comments on commit c6171f4

Please sign in to comment.