From 0fd892ad288f2e1eaaa4fdf5e1fd6f15dbd45860 Mon Sep 17 00:00:00 2001
From: Ashm Walia <40498934+ashmgarv@users.noreply.github.com>
Date: Fri, 4 Dec 2020 08:50:24 -0800
Subject: [TMA - 398 AND TMA-430] Replace Providers with Redux Store (#125)

* First

* WIP

* Thunk

* Some more comments

* sc

* recent searches and follounfollow

* Edit profile dummy

* Block / unblock and some cleanup

* Replace auth provider

* Sc

* Delete AP  after rebase

* Discover users

* Cleanup

* More cleanup

* Replace profile provider

* Fixed build failure

* Fixed a bug reported

* Prevent app crash when backend server is down
---
 src/routes/tabs/NavigationBar.tsx | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

(limited to 'src/routes/tabs/NavigationBar.tsx')

diff --git a/src/routes/tabs/NavigationBar.tsx b/src/routes/tabs/NavigationBar.tsx
index 67f842e0..8fcbb869 100644
--- a/src/routes/tabs/NavigationBar.tsx
+++ b/src/routes/tabs/NavigationBar.tsx
@@ -1,6 +1,7 @@
 import {createBottomTabNavigator} from '@react-navigation/bottom-tabs';
 import React, {Fragment} from 'react';
 import {NavigationIcon} from '../../components';
+import {ScreenType} from '../../types';
 import Profile from '../profile/Profile';
 
 const Tabs = createBottomTabNavigator();
@@ -45,12 +46,12 @@ const NavigationBar: React.FC = () => {
       <Tabs.Screen
         name="Search"
         component={Profile}
-        initialParams={{isProfileView: true}}
+        initialParams={{screenType: ScreenType.Search}}
       />
       <Tabs.Screen
         name="Profile"
         component={Profile}
-        initialParams={{isProfileView: false}}
+        initialParams={{screenType: ScreenType.Profile}}
       />
     </Tabs.Navigator>
   );
-- 
cgit v1.2.3-70-g09d2

