Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
732 B

4 years ago
  1. # -*- mode: snippet -*-
  2. # uuid: 73a39297-05ec-45c0-9a05-9b3e5653c477
  3. # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
  4. # name: reactNativeClassComponentRedux
  5. # key: rncredux
  6. # --
  7. import React, { Component } from 'react'
  8. import { View, Text } from 'react-native'
  9. import PropTypes from 'prop-types'
  10. import { connect } from 'react-redux'
  11. export class ${1:${TM_FILENAME_BASE}} extends Component {
  12. static propTypes = {
  13. ${2:prop}: ${3:PropTypes}
  14. }
  15. render() {
  16. return (
  17. <View>
  18. <Text> ${2:textInComponent} </Text>
  19. </View>
  20. )
  21. }
  22. }
  23. const mapStateToProps = (state) => ({
  24. })
  25. const mapDispatchToProps = {
  26. }
  27. export default connect(mapStateToProps, mapDispatchToProps)(${1:${TM_FILENAME_BASE}})