import React from 'react'; import { Lbry } from 'lbry-redux'; import { NativeModules, Text, View, ScrollView } from 'react-native'; import Link from '../../component/link'; import PageHeader from '../../component/pageHeader'; import aboutStyle from '../../styles/about'; class AboutPage extends React.PureComponent { state = { appVersion: null, lbryId: null, versionInfo: null }; componentDidMount() { if (NativeModules.VersionInfo) { NativeModules.VersionInfo.getAppVersion().then(version => { this.setState({appVersion: version}); }); } Lbry.version().then(info => { this.setState({ versionInfo: info, }); }); Lbry.status({ session_status: true }).then(info => { this.setState({ lbryId: info.lbry_id, }); }); } render() { const loading = 'Loading...'; const ver = this.state.versionInfo ? this.state.versionInfo : null; return ( { this.props.navigation.goBack(); }} /> Content Freedom LBRY is a free, open, and community-run digital marketplace. It is a decentralized peer-to-peer content distribution platform for creators to upload and share content, and earn LBRY credits for their effort. Users will be able to find a wide selection of videos, music, ebooks and other digital content they are interested in. Release information App version {this.state.appVersion} Daemon (lbrynet) {ver ? ver.lbrynet_version : loading } Wallet (lbryum) {ver ? ver.lbryum_version : loading } Platform {ver ? ver.platform : loading } Installation ID {this.state.lbryId ? this.state.lbryId : loading} ); } } export default AboutPage;