From 02826196433dcdd7d098b7b9dbe26b8693a24db3 Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Tue, 2 Apr 2019 21:14:03 +0100 Subject: [PATCH 1/2] fix issues with 0.6.1 release --- .../component/suggestedSubscriptions/view.js | 5 ++- app/src/component/uriBar/view.js | 27 ++++++------ app/src/page/file/view.js | 41 +++++++++++-------- app/src/page/search/view.js | 13 ++++-- app/src/styles/filePage.js | 8 ++-- app/src/styles/search.js | 9 ++-- app/src/styles/uriBar.js | 4 +- 7 files changed, 62 insertions(+), 45 deletions(-) diff --git a/app/src/component/suggestedSubscriptions/view.js b/app/src/component/suggestedSubscriptions/view.js index b51e1af3..18c55fe4 100644 --- a/app/src/component/suggestedSubscriptions/view.js +++ b/app/src/component/suggestedSubscriptions/view.js @@ -1,6 +1,7 @@ import React from 'react'; import { ActivityIndicator, SectionList, Text, View } from 'react-native'; import { normalizeURI } from 'lbry-redux'; +import { navigateToUri } from 'utils/helper'; import SubscribeButton from 'component/subscribeButton'; import SuggestedSubscriptionItem from 'component/suggestedSubscriptionItem'; import Colors from 'styles/colors'; @@ -36,7 +37,9 @@ class SuggestedSubscriptions extends React.PureComponent { const channelUri = normalizeURI(titleParts[1]); return ( - + { + navigateToUri(navigation, normalizeURI(channelUri)); + }} /> ) diff --git a/app/src/component/uriBar/view.js b/app/src/component/uriBar/view.js index 2d11fc0d..2c902f9e 100644 --- a/app/src/component/uriBar/view.js +++ b/app/src/component/uriBar/view.js @@ -105,6 +105,20 @@ class UriBar extends React.PureComponent { style.push(uriBarStyle.inFocus); } + /*{(this.state.focused && !this.state.directSearch) && ( + + item.value} + renderItem={({item}) => ( + this.handleItemPress(item)} + />)} /> + )}*/ + return ( @@ -153,19 +167,6 @@ class UriBar extends React.PureComponent { } }}/> - {(this.state.focused && !this.state.directSearch) && ( - - item.value} - renderItem={({item}) => ( - this.handleItemPress(item)} - />)} /> - )} ); } diff --git a/app/src/page/file/view.js b/app/src/page/file/view.js index 921e5c96..8b2813a4 100644 --- a/app/src/page/file/view.js +++ b/app/src/page/file/view.js @@ -591,6 +591,10 @@ class FilePage extends React.PureComponent { show={DateTime.SHOW_DATE} /> +