From 3077653f4b2ce3b16e0494dc404e8edff4a683ed Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Fri, 7 Jun 2019 10:29:01 +0100 Subject: [PATCH] fix missing import --- app/src/component/AppNavigator.js | 6 +++--- app/src/page/publish/view.js | 5 ++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/src/component/AppNavigator.js b/app/src/component/AppNavigator.js index aa644c56..b1487425 100644 --- a/app/src/component/AppNavigator.js +++ b/app/src/component/AppNavigator.js @@ -134,12 +134,12 @@ const drawer = createDrawerNavigator({ WalletStack: { screen: walletStack, navigationOptions: { title: 'Wallet', drawerIcon: ({ tintColor }) => }}, - Publish: { screen: PublishPage, navigationOptions: { - drawerIcon: ({ tintColor }) => - }}, Rewards: { screen: RewardsPage, navigationOptions: { drawerIcon: ({ tintColor }) => }}, + Publish: { screen: PublishPage, navigationOptions: { + drawerIcon: ({ tintColor }) => + }}, MyLBRYStack: { screen: DownloadsPage, navigationOptions: { title: 'Library', drawerIcon: ({ tintColor }) => }}, diff --git a/app/src/page/publish/view.js b/app/src/page/publish/view.js index ce6eb0c9..0adc85e7 100644 --- a/app/src/page/publish/view.js +++ b/app/src/page/publish/view.js @@ -1,5 +1,6 @@ import React from 'react'; import { NativeModules, Text, View } from 'react-native'; +import UriBar from 'component/uriBar'; import publishStyle from 'styles/reward'; class PublishPage extends React.PureComponent { @@ -22,7 +23,7 @@ class PublishPage extends React.PureComponent { pushDrawerStack(); setPlayerVisible(); NativeModules.Gallery.getVideos().then(videos => { - console.log('videos retrieved.'); + console.log(videos); }); } @@ -40,6 +41,8 @@ class PublishPage extends React.PureComponent { } render() { + const { navigation } = this.props; + return (