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, versionInfo: info,
}); });
}); });
Lbry.status({ session_status: true }).then(info => { Lbry.status().then(info => {
console.log(info);
this.setState({ 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; const ver = this.state.versionInfo ? this.state.versionInfo : null;
return ( return (
<View> <View style={aboutStyle.container}>
<PageHeader title={"About LBRY"} <PageHeader title={"About LBRY"}
onBackPressed={() => { this.props.navigation.goBack(); }} /> onBackPressed={() => { this.props.navigation.goBack(); }} />
<ScrollView style={aboutStyle.scrollContainer}> <ScrollView style={aboutStyle.scrollContainer}>

View file

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