- open settings & click File and Code Templates
- add a new one template, named JSX View Template
- copy template.js into the textarea & click apply
- new File & select JSX View Template
Last active
November 28, 2016 10:42
-
-
Save oksep/60be1e2ff52cc32101ff9e4e83e3c674 to your computer and use it in GitHub Desktop.
WebStorm add file templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @flow | |
'use strict'; | |
import React, {Component} from 'react'; | |
import {View, StyleSheet} from 'react-native'; | |
export default class ${NAME} extends Component { | |
constructor(props) { | |
super(props); | |
this.state = { | |
}; | |
} | |
render() { | |
return ( | |
<View style={styles.container}> | |
</View> | |
) | |
} | |
} | |
const styles = StyleSheet.create({ | |
container: { | |
} | |
}); | |
${NAME}.defaultProps = { | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment