Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "React Native Redux Component": {
- "scope": "javascript,typescript",
- "prefix": "rncc",
- "body": [
- "import { View, Text, StyleSheet } from 'react-native';",
- "import React, { Component } from 'react';",
- "import { connect } from 'react-redux';",
- "",
- "class ${1:string} extends Component {",
- " render() {",
- " return (",
- " <View style={styles.container}>",
- " ${1:string}",
- " </View>",
- " );",
- " }",
- "}",
- "",
- "const styles = StyleSheet.create({",
- " container: {",
- " flex: 1",
- " }",
- "});",
- "",
- "const mapStateToProps = state => ({});",
- "",
- "const mapDispatchToProps = dispatch => ({});",
- "",
- "export default connect(",
- " mapStateToProps,",
- " mapDispatchToProps",
- ")(${1:string});",
- ],
- "description": "React native redux component"
- },
- "Import Export": {
- "scope": "javascript,typescript",
- "prefix": "imp",
- "body": [
- "import ${1:string} from './${1:string}';",
- "",
- "export default ${1:string};",
- ],
- "description": "Import Export"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement