diff --git a/apps/mobile/src/services/NavigationService.js b/apps/mobile/src/services/NavigationService.js
index 9066864f2..6f444995a 100755
--- a/apps/mobile/src/services/NavigationService.js
+++ b/apps/mobile/src/services/NavigationService.js
@@ -4,6 +4,8 @@ import Home from '../views/Home/index';
import Editor from '../views/Editor';
import Reminders from '../views/Reminders';
import Lists from '../views/Lists';
+import Folders from '../views/Folders';
+import Favorites from '../views/Favorites';
const TopLevelNavigator = createStackNavigator(
{
@@ -19,6 +21,12 @@ const TopLevelNavigator = createStackNavigator(
Lists: {
screen: Lists,
},
+ Folders: {
+ screen: Folders,
+ },
+ Favorites: {
+ screen: Favorites,
+ },
},
{
initialRouteName: 'Home',
diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.js
new file mode 100644
index 000000000..853d22fd2
--- /dev/null
+++ b/apps/mobile/src/views/Favorites/index.js
@@ -0,0 +1,62 @@
+import React, {useEffect, useState} from 'react';
+import {
+ ScrollView,
+ View,
+ Text,
+ TouchableOpacity,
+ Dimensions,
+ Image,
+ SafeAreaView,
+ Platform,
+} from 'react-native';
+import NavigationService from '../../services/NavigationService';
+import {
+ COLOR_SCHEME,
+ SIZE,
+ br,
+ ph,
+ pv,
+ opacity,
+ FONT,
+ WEIGHT,
+} from '../../common/common';
+import Icon from 'react-native-vector-icons/Ionicons';
+import {Reminder} from '../../components/Reminder';
+import {ListItem} from '../../components/ListItem';
+
+const w = Dimensions.get('window').width;
+const h = Dimensions.get('window').height;
+
+export const Favorites = ({navigation}) => {
+ const [colors, setColors] = useState(COLOR_SCHEME);
+
+ return (
+
+
+
+ Favorites
+
+
+
+
+ );
+};
+
+Favorites.navigationOptions = {
+ header: null,
+};
+
+export default Favorites;
diff --git a/apps/mobile/src/views/Favourites/index.js b/apps/mobile/src/views/Favourites/index.js
deleted file mode 100644
index e69de29bb..000000000
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index e69de29bb..4cfeb2a36 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -0,0 +1,124 @@
+import React, {useEffect, useState} from 'react';
+import {
+ ScrollView,
+ View,
+ Text,
+ TouchableOpacity,
+ Dimensions,
+ Image,
+ SafeAreaView,
+ Platform,
+} from 'react-native';
+import NavigationService from '../../services/NavigationService';
+import {
+ COLOR_SCHEME,
+ SIZE,
+ br,
+ ph,
+ pv,
+ opacity,
+ FONT,
+ WEIGHT,
+} from '../../common/common';
+import Icon from 'react-native-vector-icons/Ionicons';
+import {Reminder} from '../../components/Reminder';
+import {ListItem} from '../../components/ListItem';
+import {getElevation} from '../../utils/utils';
+import {FlatList} from 'react-native-gesture-handler';
+
+const w = Dimensions.get('window').width;
+const h = Dimensions.get('window').height;
+
+export const Folders = ({navigation}) => {
+ const [colors, setColors] = useState(COLOR_SCHEME);
+
+ return (
+
+
+
+ Folders
+
+
+
+
+ (
+
+
+
+ {item.Qty} Files
+
+
+
+ {item.name}
+
+
+ )}
+ />
+
+ );
+};
+
+Folders.navigationOptions = {
+ header: null,
+};
+
+export default Folders;
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index cf947e57c..675038dcb 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -1,4 +1,4 @@
-import React, {useEffect, useState} from 'react';
+import React, {useEffect, useState, createRef} from 'react';
import {
ScrollView,
View,
@@ -35,25 +35,13 @@ const h = Dimensions.get('window').height;
export const Home = ({navigation}) => {
const [loading, setLoading] = useState(true);
const [colors, setColors] = useState(COLOR_SCHEME);
-
+ const [isOpen, setOpen] = useState(false);
const RenderSideMenu = (
-
{
justifyContent: 'center',
alignItems: 'center',
alignSelf: 'center',
+ backgroundColor: colors.accent,
}}>
{
{
{
name: 'Home',
icon: 'ios-home',
+ func: () => NavigationService.navigate('Home'),
+ },
+ {
+ name: 'Favorites',
+ icon: 'md-star',
+ func: () => NavigationService.navigate('Favorites'),
+ },
+ {
+ name: 'Folders',
+ icon: 'md-folder',
+ func: () => NavigationService.navigate('Folders'),
},
]}
keyExtractor={(item, index) => item.name}
renderItem={({item, index}) => (
{
+ item.func();
+ setOpen(false);
+ }}
style={{
width: '100%',
alignSelf: 'center',
@@ -162,7 +165,7 @@ export const Home = ({navigation}) => {
{
return (
{
+ setOpen(args);
+ }}
menu={RenderSideMenu}
openMenuOffset={w / 1.5}>