Klimi's new dotfiles with stow.
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 
 
 
 

35 righe
732 B

# -*- mode: snippet -*-
# uuid: 73a39297-05ec-45c0-9a05-9b3e5653c477
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
# name: reactNativeClassComponentRedux
# key: rncredux
# --
import React, { Component } from 'react'
import { View, Text } from 'react-native'
import PropTypes from 'prop-types'
import { connect } from 'react-redux'
export class ${1:${TM_FILENAME_BASE}} extends Component {
static propTypes = {
${2:prop}: ${3:PropTypes}
}
render() {
return (
<View>
<Text> ${2:textInComponent} </Text>
</View>
)
}
}
const mapStateToProps = (state) => ({
})
const mapDispatchToProps = {
}
export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})