Last active
February 16, 2020 00:10
-
-
Save AllGistsEqual/c14e5c68271e561b527d31fcba9ec7e4 to your computer and use it in GitHub Desktop.
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
// src/components/other/VersionTag.jsx | |
import React from 'react' | |
import { Text } from 'react-native' | |
import { connect } from 'react-redux' | |
const VersionTag = ({ applicationState: { version, name } }) => ( | |
<Text>{`${name} (v${version})`}</Text> | |
) | |
const mapStateToProps = (state) => ({ | |
applicationState: state.application, | |
}) | |
export default connect( | |
mapStateToProps, | |
)(VersionTag) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment