import React from 'react'; import { SETTINGS } from 'lbry-redux'; import { Text, View, ScrollView, Switch } from 'react-native'; import PageHeader from '../../component/pageHeader'; import settingsStyle from '../../styles/settings'; class SettingsPage extends React.PureComponent { static navigationOptions = { title: 'Settings' } render() { const { backgroundPlayEnabled, keepDaemonRunning, showNsfw, setClientSetting } = this.props; return ( { this.props.navigation.goBack(); }} /> Enable background media playback Enable this option to play audio or video in the background when the app is suspended. setClientSetting(SETTINGS.BACKGROUND_PLAY_ENABLED, value)} /> Show NSFW content setClientSetting(SETTINGS.SHOW_NSFW, value)} /> Keep the daemon background service running when the app is suspended. Enable this option for quicker app launch and to keep the synchronisation with the blockchain up to date. setClientSetting(SETTINGS.KEEP_DAEMON_RUNNING, value)} /> ); } } export default SettingsPage;