import React from 'react'; import { Lbry } from 'lbry-redux'; import { NativeModules, Text, View, ScrollView } from 'react-native'; import { navigateBack } from 'utils/helper'; 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() { this.props.pushDrawerStack(); if (NativeModules.VersionInfo) { NativeModules.VersionInfo.getAppVersion().then(version => { this.setState({appVersion: version}); }); } Lbry.version().then(info => { this.setState({ versionInfo: info, }); }); Lbry.status().then(info => { this.setState({ lbryId: info.installation_id, }); }); if (!this.props.accessToken) this.props.fetchAccessToken(); } render() { const { accessToken, drawerStack, navigation, notify, popDrawerStack, userEmail } = this.props; const loading = 'Loading...'; const ver = this.state.versionInfo ? this.state.versionInfo : null; return ( navigateBack(navigation, drawerStack, popDrawerStack)} /> 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. Get Social You can interact with the LBRY team and members of the community on Discord, Facebook, Instagram, Twitter or Reddit. App info {userEmail && userEmail.trim().length > 0 && Connected Email {userEmail} } App version {this.state.appVersion} Daemon (lbrynet) {ver ? ver.lbrynet_version : loading } Platform {ver ? ver.platform : loading } Installation ID {this.state.lbryId ? this.state.lbryId : loading} Logs { if (NativeModules.UtilityModule) { NativeModules.UtilityModule.shareLogFile((error) => { if (error) { notify(error); } }); } }} /> ); } } export default AboutPage;