implement my LBRY downloads page #273
3 changed files with 14 additions and 4 deletions
|
@ -45,12 +45,20 @@ class UriBar extends React.PureComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
handleItemPress = (item) => {
|
handleItemPress = (item) => {
|
||||||
const { navigation, updateSearchQuery } = this.props;
|
const { navigation, onSearchSubmitted, updateSearchQuery } = this.props;
|
||||||
const { type, value } = item;
|
const { type, value } = item;
|
||||||
|
|
||||||
Keyboard.dismiss();
|
Keyboard.dismiss();
|
||||||
|
|
||||||
if (SEARCH_TYPES.SEARCH === type) {
|
if (SEARCH_TYPES.SEARCH === type) {
|
||||||
|
this.setState({ currentValue: value });
|
||||||
|
updateSearchQuery(value);
|
||||||
|
|
||||||
|
if (onSearchSubmitted) {
|
||||||
|
onSearchSubmitted(value);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
navigation.navigate({ routeName: 'Search', key: 'searchPage', params: { searchQuery: value }});
|
navigation.navigate({ routeName: 'Search', key: 'searchPage', params: { searchQuery: value }});
|
||||||
} else {
|
} else {
|
||||||
const uri = normalizeURI(value);
|
const uri = normalizeURI(value);
|
||||||
|
|
|
@ -46,7 +46,7 @@ class SettingsPage extends React.PureComponent {
|
||||||
|
|
||||||
<View style={settingsStyle.row}>
|
<View style={settingsStyle.row}>
|
||||||
<View style={settingsStyle.switchText}>
|
<View style={settingsStyle.switchText}>
|
||||||
<Text style={settingsStyle.label}>Keep the daemon background service running when the app is suspended.</Text>
|
<Text style={settingsStyle.label}>Keep the daemon background service running after closing the app</Text>
|
||||||
<Text style={settingsStyle.description}>Enable this option for quicker app launch and to keep the synchronisation with the blockchain up to date.</Text>
|
<Text style={settingsStyle.description}>Enable this option for quicker app launch and to keep the synchronisation with the blockchain up to date.</Text>
|
||||||
</View>
|
</View>
|
||||||
<View style={settingsStyle.switchContainer}>
|
<View style={settingsStyle.switchContainer}>
|
||||||
|
|
|
@ -25,12 +25,14 @@ const settingsStyle = StyleSheet.create({
|
||||||
},
|
},
|
||||||
label: {
|
label: {
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
fontFamily: 'Metropolis-Regular'
|
fontFamily: 'Metropolis-Regular',
|
||||||
|
lineHeight: 18
|
||||||
},
|
},
|
||||||
description: {
|
description: {
|
||||||
|
color: '#aaaaaa',
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
fontFamily: 'Metropolis-Regular',
|
fontFamily: 'Metropolis-Regular',
|
||||||
color: '#aaaaaa'
|
lineHeight: 18
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue