Merge pull request #215 from lbryio/social-drivers
added Discord and social media links to the About page
This commit is contained in:
commit
338cd20132
2 changed files with 27 additions and 9 deletions
|
@ -11,11 +11,11 @@ class AboutPage extends React.PureComponent {
|
||||||
lbryId: null,
|
lbryId: null,
|
||||||
versionInfo: null
|
versionInfo: null
|
||||||
};
|
};
|
||||||
|
|
||||||
componentDidMount() {
|
componentDidMount() {
|
||||||
if (NativeModules.VersionInfo) {
|
if (NativeModules.VersionInfo) {
|
||||||
NativeModules.VersionInfo.getAppVersion().then(version => {
|
NativeModules.VersionInfo.getAppVersion().then(version => {
|
||||||
this.setState({appVersion: version});
|
this.setState({appVersion: version});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
Lbry.version().then(info => {
|
Lbry.version().then(info => {
|
||||||
|
@ -29,11 +29,11 @@ class AboutPage extends React.PureComponent {
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const loading = 'Loading...';
|
const loading = 'Loading...';
|
||||||
const ver = this.state.versionInfo ? this.state.versionInfo : null;
|
const ver = this.state.versionInfo ? this.state.versionInfo : null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View>
|
<View>
|
||||||
<PageHeader title={"About LBRY"}
|
<PageHeader title={"About LBRY"}
|
||||||
|
@ -50,27 +50,38 @@ class AboutPage extends React.PureComponent {
|
||||||
<Link style={aboutStyle.link} href="https://lbry.io/faq/what-is-lbry" text="What is LBRY?" />
|
<Link style={aboutStyle.link} href="https://lbry.io/faq/what-is-lbry" text="What is LBRY?" />
|
||||||
<Link style={aboutStyle.link} href="https://lbry.io/faq" text="Frequently Asked Questions" />
|
<Link style={aboutStyle.link} href="https://lbry.io/faq" text="Frequently Asked Questions" />
|
||||||
</View>
|
</View>
|
||||||
|
<Text style={aboutStyle.socialTitle}>Get Social</Text>
|
||||||
|
<Text style={aboutStyle.paragraph}>
|
||||||
|
You can interact with the LBRY team and members of the community on Discord, Facebook, Instagram, Twitter or Reddit.
|
||||||
|
</Text>
|
||||||
|
<View style={aboutStyle.links}>
|
||||||
|
<Link style={aboutStyle.link} href="https://discordapp.com/invite/Z3bERWA" text="Discord" />
|
||||||
|
<Link style={aboutStyle.link} href="https://www.facebook.com/LBRYio" text="Facebook" />
|
||||||
|
<Link style={aboutStyle.link} href="https://www.instagram.com/LBRYio/" text="Instagram" />
|
||||||
|
<Link style={aboutStyle.link} href="https://twitter.com/LBRYio" text="Twitter" />
|
||||||
|
<Link style={aboutStyle.link} href="https://reddit.com/r/lbry" text="Reddit" />
|
||||||
|
</View>
|
||||||
<Text style={aboutStyle.releaseInfoTitle}>Release information</Text>
|
<Text style={aboutStyle.releaseInfoTitle}>Release information</Text>
|
||||||
<View style={aboutStyle.row}>
|
<View style={aboutStyle.row}>
|
||||||
<View style={aboutStyle.col}><Text style={aboutStyle.text}>App version</Text></View>
|
<View style={aboutStyle.col}><Text style={aboutStyle.text}>App version</Text></View>
|
||||||
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{this.state.appVersion}</Text></View>
|
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{this.state.appVersion}</Text></View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={aboutStyle.row}>
|
<View style={aboutStyle.row}>
|
||||||
<View style={aboutStyle.col}><Text style={aboutStyle.text}>Daemon (lbrynet)</Text></View>
|
<View style={aboutStyle.col}><Text style={aboutStyle.text}>Daemon (lbrynet)</Text></View>
|
||||||
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{ver ? ver.lbrynet_version : loading }</Text></View>
|
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{ver ? ver.lbrynet_version : loading }</Text></View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={aboutStyle.row}>
|
<View style={aboutStyle.row}>
|
||||||
<View style={aboutStyle.col}><Text style={aboutStyle.text}>Wallet (lbryum)</Text></View>
|
<View style={aboutStyle.col}><Text style={aboutStyle.text}>Wallet (lbryum)</Text></View>
|
||||||
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{ver ? ver.lbryum_version : loading }</Text></View>
|
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{ver ? ver.lbryum_version : loading }</Text></View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={aboutStyle.row}>
|
<View style={aboutStyle.row}>
|
||||||
<View style={aboutStyle.col}><Text style={aboutStyle.text}>Platform</Text></View>
|
<View style={aboutStyle.col}><Text style={aboutStyle.text}>Platform</Text></View>
|
||||||
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{ver ? ver.platform : loading }</Text></View>
|
<View style={aboutStyle.col}><Text selectable={true} style={aboutStyle.valueText}>{ver ? ver.platform : loading }</Text></View>
|
||||||
</View>
|
</View>
|
||||||
|
|
||||||
<View style={aboutStyle.row}>
|
<View style={aboutStyle.row}>
|
||||||
<View style={aboutStyle.col}>
|
<View style={aboutStyle.col}>
|
||||||
<Text style={aboutStyle.text}>Installation ID</Text>
|
<Text style={aboutStyle.text}>Installation ID</Text>
|
||||||
|
|
|
@ -33,7 +33,7 @@ const aboutStyle = StyleSheet.create({
|
||||||
links: {
|
links: {
|
||||||
marginLeft: 12,
|
marginLeft: 12,
|
||||||
marginRight: 12,
|
marginRight: 12,
|
||||||
marginBottom: 12
|
marginBottom: 18
|
||||||
},
|
},
|
||||||
link: {
|
link: {
|
||||||
color: Colors.LbryGreen,
|
color: Colors.LbryGreen,
|
||||||
|
@ -44,6 +44,13 @@ const aboutStyle = StyleSheet.create({
|
||||||
col: {
|
col: {
|
||||||
alignSelf: 'stretch'
|
alignSelf: 'stretch'
|
||||||
},
|
},
|
||||||
|
socialTitle: {
|
||||||
|
fontFamily: 'Metropolis-Regular',
|
||||||
|
marginLeft: 12,
|
||||||
|
marginRight: 12,
|
||||||
|
marginBottom: 8,
|
||||||
|
fontSize: 20
|
||||||
|
},
|
||||||
releaseInfoTitle: {
|
releaseInfoTitle: {
|
||||||
fontFamily: 'Metropolis-Regular',
|
fontFamily: 'Metropolis-Regular',
|
||||||
marginLeft: 12,
|
marginLeft: 12,
|
||||||
|
|
Loading…
Reference in a new issue