update status call on About page and some style tweaks

This commit is contained in:
Akinwale Ariwodola 2018-08-13 21:40:46 +01:00
parent e5000f6502
commit a2094e9953
2 changed files with 9 additions and 5 deletions

View file

@ -23,9 +23,10 @@ class AboutPage extends React.PureComponent {
versionInfo: info,
});
});
Lbry.status({ session_status: true }).then(info => {
Lbry.status().then(info => {
console.log(info);
this.setState({
lbryId: info.lbry_id,
lbryId: info.installation_id,
});
});
}
@ -35,7 +36,7 @@ class AboutPage extends React.PureComponent {
const ver = this.state.versionInfo ? this.state.versionInfo : null;
return (
<View>
<View style={aboutStyle.container}>
<PageHeader title={"About LBRY"}
onBackPressed={() => { this.props.navigation.goBack(); }} />
<ScrollView style={aboutStyle.scrollContainer}>

View file

@ -2,9 +2,11 @@ import { StyleSheet } from 'react-native';
import Colors from './colors';
const aboutStyle = StyleSheet.create({
container: {
flex: 1
},
scrollContainer: {
paddingTop: 16,
paddingBottom: 16
flex: 1
},
row: {
marginBottom: 1,
@ -18,6 +20,7 @@ const aboutStyle = StyleSheet.create({
color: Colors.LbryGreen,
fontSize: 24,
fontFamily: 'Metropolis-SemiBold',
marginTop: 16,
marginLeft: 12,
marginRight: 12,
marginBottom: 8