A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
update
thewisefarmerrda3bbf179d3c
diff --git a/apps/mobile/App.js b/apps/mobile/App.jsindex fe3cdc5df..19bf778b4 100644--- a/apps/mobile/App.js+++ b/apps/mobile/App.js@@ -64,22 +64,28 @@ const App = () => {height: '100%',flexDirection: 'row',}}>- <Animatable.View- transition="width"- duration={200}- style={{- width: sidebar,- }}>- <RenderSideMenu- colors={colors}- close={() => {- setSidebar('0%');- }}- />- </Animatable.View>+ {Platform.isPad ? (+ <Animatable.View+ transition="width"+ duration={200}+ style={{+ width: sidebar,+ }}>+ <RenderSideMenu+ colors={colors}+ close={() => {+ setSidebar('0%');+ }}+ />{' '}+ : undefined+ </Animatable.View>+ ) : (+ undefined+ )}+<AppContainerstyle={{- width: '70%',+ width: Platform.isPad ? '70%' : '100%',height: '100%',}}ref={navigatorRef => {diff --git a/apps/mobile/src/common/common.js b/apps/mobile/src/common/common.jsindex b4f1de934..127ec5c92 100755--- a/apps/mobile/src/common/common.js+++ b/apps/mobile/src/common/common.js@@ -29,7 +29,7 @@ export const COLOR_SCHEME = {night: false,bg: 'white',fg: '#0560FF',- navbg: '#f2f2f2',+ navbg: '#f6fbfc',pri: 'black',sec: 'white',accent: '#0560FF',diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.jsindex 7fa1986d7..c575838c2 100644--- a/apps/mobile/src/components/NoteItem/index.js+++ b/apps/mobile/src/components/NoteItem/index.js@@ -37,7 +37,7 @@ const NoteItem = props => {<Viewstyle={{marginHorizontal: w * 0.05,- backgroundColor: '#f0f0f0',+marginVertical: h * 0.015,borderRadius: br,justifyContent: 'center',@@ -46,6 +46,8 @@ const NoteItem = props => {padding: pv,width: Platform.isPad ? '95%' : '90%',alignSelf: 'center',+ borderBottomWidth: 1,+ borderBottomColor: '#f0f0f0',}}><TouchableOpacityactiveOpacity={1}diff --git a/apps/mobile/src/components/NotesList/index.js b/apps/mobile/src/components/NotesList/index.jsnew file mode 100644index 000000000..5f9289682--- /dev/null+++ b/apps/mobile/src/components/NotesList/index.js@@ -0,0 +1,113 @@+import React, {useState, useEffect} from 'react';+import {+ View,+ Text,+ TouchableOpacity,+ ScrollView,+ Dimensions,+ FlatList,+ Platform,+} from 'react-native';++import {+ COLOR_SCHEME,+ SIZE,+ br,+ ph,+ pv,+ opacity,+ FONT,+ WEIGHT,+} from '../../common/common';++import Icon from 'react-native-vector-icons/Ionicons';+import {Reminder} from '../Reminder';+import {getElevation} from '../../utils/utils';+import NoteItem from '../NoteItem';+import NavigationService from '../../services/NavigationService';+import {storage} from '../../../App';++let blockdata = [+ {+ name: '',+ icon: 'md-add',+ func: () => {+ NavigationService.navigate('Editor');+ },+ },+ {+ name: 'All Notes',+ icon: 'md-create',+ func: () => {+ NavigationService.navigate('Reminders');+ },+ },+ {+ name: 'Lists',+ icon: 'ios-list',+ func: () => {+ NavigationService.navigate('Lists');+ },+ },+];++export const NotesList = ({keyword}) => {+ const [colors, setColors] = useState(COLOR_SCHEME);+ const [notes, setNotes] = useState([]);+ const fetchNotes = async () => {+ let allNotes = await storage.getNotes();+ console.log(allNotes);+ if (allNotes) {+ setNotes(allNotes);+ }+ };+ useEffect(() => {+ fetchNotes();+ }, [keyword]);++ return (+ <>+ <FlatList+ data={notes}+ ListFooterComponent={+ <View+ style={{+ height: 150,+ alignItems: 'center',+ justifyContent: 'center',+ }}>+ <Text+ style={{+ color: colors.navbg,+ fontSize: SIZE.sm,+ fontFamily: WEIGHT.regular,+ }}>+ - End -+ </Text>+ </View>+ }+ ListHeaderComponent={+ <>+ <Text+ style={{+ fontSize: SIZE.lg,+ fontFamily: WEIGHT.medium,+ color: colors.pri,+ paddingHorizontal: Platform.isPad ? '2.5%' : '5%',+ maxWidth: '100%',+ }}>+ Search Results for{' '}+ <Text+ style={{+ color: colors.accent,+ }}>+ {keyword}{' '}+ </Text>+ </Text>+ </>+ }+ renderItem={({item, index}) => <NoteItem item={item} index={index} />}+ />+ </>+ );+};diff --git a/apps/mobile/src/components/Recents/index.js b/apps/mobile/src/components/Recents/index.jsindex ae1c5ccad..ff494e719 100644--- a/apps/mobile/src/components/Recents/index.js+++ b/apps/mobile/src/components/Recents/index.js@@ -91,7 +91,7 @@ export const RecentList = () => {<ScrollViewhorizontal={true}style={{- paddingHorizontal: '2%',+ paddingHorizontal: Platform.isPad ? '2%' : '4%',}}showsHorizontalScrollIndicator={false}contentContainerStyle={{@@ -108,13 +108,15 @@ export const RecentList = () => {height: 100,borderRadius: br,backgroundColor:- item.icon === 'md-add' ? colors.accent : '#f0f0f0',+ item.icon === 'md-add' ? colors.accent : 'white',justifyContent: 'center',alignItems: 'center',marginRight: 30,marginLeft: 5,marginVertical: 20,marginBottom: 20,+ borderWidth: 1.5,+ borderColor: '#f0f0f0',}}><Viewstyle={{diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.jsindex fde065134..be190d521 100644--- a/apps/mobile/src/components/SearchInput/index.js+++ b/apps/mobile/src/components/SearchInput/index.js@@ -1,4 +1,4 @@-import React, {Fragment, useEffect, useState} from 'react';+import React, {Fragment, useEffect, useState, createRef} from 'react';import {View, TextInput, Platform, DeviceEventEmitter} from 'react-native';import {COLOR_SCHEME,@@ -15,7 +15,8 @@ import {getElevation} from '../../utils/utils';export const Search = props => {const [colors, setColors] = useState(COLOR_SCHEME);-+ const [focus, setFocus] = useState(false);+ const inputRef = createRef();return (<Viewstyle={{@@ -23,14 +24,17 @@ export const Search = props => {justifyContent: 'space-between',alignItems: 'center',width: Platform.isPad ? '95%' : '90%',- backgroundColor: '#f0f0f0',+alignSelf: 'center',borderRadius: br,+ borderWidth: 1.5,paddingHorizontal: ph,paddingVertical: Platform.OS == 'ios' ? pv - 3 : pv - 8,marginBottom: 10,+ borderColor: focus ? colors.navbg : '#f0f0f0',}}><TextInput+ ref={inputRef}style={{fontFamily: WEIGHT.regular,maxWidth: '90%',@@ -39,16 +43,30 @@ export const Search = props => {}}onChangeText={props.onChangeText}onSubmitEditing={props.onSubmitEditing}- onFocus={props.onFocus}- onBlur={props.onBlur}+ onFocus={() => {+ setFocus(true);+ props.onFocus;+ }}+ onBlur={() => {+ setFocus(false);+ props.onBlur;+ }}numberOfLines={1}placeholder="Search your notes"placeholderTextColor={colors.icon}/><Iconstyle={{paddingRight: Platform.isPad ? '1.25%' : '2.5%'}}- name="ios-search"- color={colors.icon}+ onPress={() => {+ props.value.length > 0 ? props.onClose() : null;+ inputRef.current.setNativeProps({+ text: '',+ });+ }}+ name={+ props.value && props.value.length > 0 ? 'ios-close' : 'ios-search'+ }+ color={focus ? colors.accent : colors.icon}size={SIZE.xl}/></View>diff --git a/apps/mobile/src/components/header/index.js b/apps/mobile/src/components/header/index.jsindex 88fb24423..60056ae43 100644--- a/apps/mobile/src/components/header/index.js+++ b/apps/mobile/src/components/header/index.js@@ -1,6 +1,6 @@import React from 'react';import {View, TouchableOpacity, Platform, Text} from 'react-native';-import Icon from 'react-native-vector-icons/Ionicons';+import Icon from 'react-native-vector-icons/Feather';import {SIZE, WEIGHT} from '../../common/common';import {h} from '../../utils/utils';@@ -18,11 +18,12 @@ export const Header = ({heading, colors, canGoBack = true}) => {{canGoBack ? (<TouchableOpacitystyle={{- paddingRight: 20,justifyContent: 'center',alignItems: 'center',+ height: 40,+ paddingRight: 15,}}>- <Icon name="ios-arrow-back" size={SIZE.xl} />+ <Icon name={'chevron-left'} size={SIZE.xl} /></TouchableOpacity>) : (undefineddiff --git a/apps/mobile/src/services/NavigationService.js b/apps/mobile/src/services/NavigationService.jsindex a8c514a50..414af01ff 100755--- a/apps/mobile/src/services/NavigationService.js+++ b/apps/mobile/src/services/NavigationService.js@@ -11,6 +11,8 @@ import ReminderEditor from '../views/ReminderEditor';import Login from '../views/Login';import Signup from '../views/Signup';import ForgotPassword from '../views/ForgotPassword';+import Settings from '../views/Settings';+import Trash from '../views/Trash';const TopLevelNavigator = createStackNavigator({@@ -47,6 +49,12 @@ const TopLevelNavigator = createStackNavigator(ForgotPassword: {screen: ForgotPassword,},+ Settings: {+ screen: Settings,+ },+ Trash: {+ screen: Trash,+ },},{initialRouteName: 'Home',diff --git a/apps/mobile/src/views/Favorites/index.js b/apps/mobile/src/views/Favorites/index.jsindex 853d22fd2..9c563a1dd 100644--- a/apps/mobile/src/views/Favorites/index.js+++ b/apps/mobile/src/views/Favorites/index.js@@ -23,6 +23,7 @@ import {import Icon from 'react-native-vector-icons/Ionicons';import {Reminder} from '../../components/Reminder';import {ListItem} from '../../components/ListItem';+import {Header} from '../../components/header';const w = Dimensions.get('window').width;const h = Dimensions.get('window').height;@@ -32,25 +33,7 @@ export const Favorites = ({navigation}) => {return (<SafeAreaView>- <View- style={{- flexDirection: 'row',- justifyContent: 'space-between',- alignItems: 'center',- paddingHorizontal: '5%',- marginTop: Platform.OS == 'ios' ? h * 0.02 : h * 0.04,- marginBottom: h * 0.04,- }}>- <Text- style={{- fontSize: SIZE.xxl,- color: colors.pri,- fontFamily: WEIGHT.bold,- }}>- Favorites- </Text>- <Icon name="md-more" color={colors.icon} size={SIZE.xxl} />- </View>+ <Header colors={colors} heading="Favorites" canGoBack={false} /></SafeAreaView>);};diff --git a/apps/mobile/src/views/ForgotPassword/index.js b/apps/mobile/src/views/ForgotPassword/index.jsindex e9a458004..cd2bd8e97 100644--- a/apps/mobile/src/views/ForgotPassword/index.js+++ b/apps/mobile/src/views/ForgotPassword/index.js@@ -1,4 +1,4 @@-import React, {useEffect, useState} from 'react';+import React, {useEffect, useState, createRef} from 'react';import {ScrollView,View,@@ -63,11 +63,17 @@ export const ForgotPassword = ({navigation}) => {ForgotPassword.navigationOptions = {header: null,+ headerStyle: {+ backgroundColor: 'transparent',+ borderBottomWidth: 0,+ height: 0,+ },};export default ForgotPassword;const renderForgotPassword = colors => {+ const _email = createRef();return (<Viewstyle={{@@ -78,9 +84,25 @@ const renderForgotPassword = colors => {}}><View><TextInput+ ref={_email}+ onFocus={() => {+ _email.current.setNativeProps({+ style: {+ borderColor: colors.navbg,+ },+ });+ }}+ onBlur={() => {+ _email.current.setNativeProps({+ style: {+ borderColor: '#f0f0f0',+ },+ });+ }}style={{padding: pv,- backgroundColor: colors.navbg,+ borderWidth: 1.5,+ borderColor: '#f0f0f0',marginHorizontal: '5%',borderRadius: 5,fontSize: SIZE.md,diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.jsindex 4cb6ace03..be0ba2b23 100755--- a/apps/mobile/src/views/Home/index.js+++ b/apps/mobile/src/views/Home/index.js@@ -33,14 +33,14 @@ import {getElevation, w, h} from '../../utils/utils';import {Header} from '../../components/header';import {tsPropertySignature} from '@babel/types';import {NavigationEvents} from 'react-navigation';+import {NotesList} from '../../components/NotesList';export const Home = ({navigation}) => {const [loading, setLoading] = useState(true);const [colors, setColors] = useState(COLOR_SCHEME);const [isOpen, setOpen] = useState(false);const [hidden, setHidden] = useState(false);-- let text = null;+ const [text, setText] = useState('');useEffect(() => {setTimeout(() => {@@ -49,9 +49,11 @@ export const Home = ({navigation}) => {}, []);const onChangeText = value => {- text = value;+ setText(value);if (value.length > 2) {setHidden(true);+ } else if (value.length < 2) {+ setHidden(false);}};const onSubmitEditing = () => {@@ -82,9 +84,14 @@ export const Home = ({navigation}) => {onSubmitEditing={onSubmitEditing}onBlur={onBlur}onFocus={onFocus}+ value={text}+ onClose={() => {+ setHidden(false);+ setText('');+ }}/>- {hidden ? null : <RecentList />}+ {hidden ? <NotesList keyword={text} /> : <RecentList />}</SafeAreaView>) : (<SideMenu@@ -93,19 +100,25 @@ export const Home = ({navigation}) => {onChange={args => {setOpen(args);}}- menu={RenderSideMenu(colors, () => setOpen(false))}+ menu={<RenderSideMenu colors={colors} close={() => setOpen(false)} />}openMenuOffset={w / 1.5}><SafeAreaView style={styles.container}>- <Header colors={colors} heading="Home" canGoBack={false} />+ <Header+ colors={colors}+ heading="Home"+ canGoBack={false}+ customIcon="menu"+ /><SearchonChangeText={onChangeText}onSubmitEditing={onSubmitEditing}onBlur={onBlur}onFocus={onFocus}+ value={text}/>- {hidden ? null : <RecentList />}+ {hidden ? <NotesList keyword={text} /> : <RecentList />}</SafeAreaView></SideMenu>);@@ -121,58 +134,62 @@ export const RenderSideMenu = ({colors, close}) => (<SafeAreaViewstyle={{height: '100%',- justifyContent: 'space-between',- }}>- <View>- <View- style={{- width: '100%',- justifyContent: 'space-between',- paddingHorizontal: '5%',- alignItems: 'center',- alignSelf: 'center',- backgroundColor: 'white',- marginBottom: 10,- marginTop: Platform.OS == 'ios' ? h * 0.01 : h * 0.04,- flexDirection: 'row',- }}>- <Image- style={{- width: 35,- height: 35,- borderRadius: 100,- marginRight: 10,- }}- source={require('../../assets/images/img.png')}- />-- <TouchableOpacity- onPress={() => {- close();- NavigationService.navigate('Login');- }}- activeOpacity={opacity}+ backgroundColor: colors.navbg,+ }}>+ <ScrollView+ contentContainerStyle={{+ justifyContent: 'space-between',+ }}>+ <View>+ <Viewstyle={{- paddingVertical: pv - 5,- paddingHorizontal: ph,- borderRadius: 5,- justifyContent: 'center',+ width: '100%',+ justifyContent: 'space-between',+ paddingHorizontal: '5%',alignItems: 'center',- borderColor: colors.accent,- backgroundColor: colors.bg,- borderWidth: 1,+ alignSelf: 'center',+ marginBottom: 10,+ marginTop: Platform.OS == 'ios' ? h * 0.01 : h * 0.05,+ flexDirection: 'row',}}>- <Text+ <Imagestyle={{- fontFamily: WEIGHT.regular,- color: colors.accent,+ width: 35,+ height: 35,+ borderRadius: 100,+ marginRight: 10,+ }}+ source={require('../../assets/images/img.png')}+ />++ <TouchableOpacity+ onPress={() => {+ close();++ NavigationService.navigate('Login');+ }}+ activeOpacity={opacity}+ style={{+ paddingVertical: pv - 5,+ paddingHorizontal: ph,+ borderRadius: 5,+ justifyContent: 'center',+ alignItems: 'center',+ borderColor: colors.accent,+ backgroundColor: colors.accent,+ borderWidth: 1,}}>- Login to Sync- </Text>- </TouchableOpacity>+ <Text+ style={{+ fontFamily: WEIGHT.medium,+ color: 'white',+ }}>+ Login+ </Text>+ </TouchableOpacity>- {/* <Text+ {/* <Textstyle={{fontFamily: WEIGHT.semibold,color: colors.accent,@@ -192,7 +209,7 @@ export const RenderSideMenu = ({colors, close}) => (80.45/100 MB</Text> */}- {/* <View+ {/* <Viewstyle={{borderRadius: 2.5,backgroundColor: colors.accent,@@ -209,158 +226,165 @@ export const RenderSideMenu = ({colors, close}) => (Basic User</Text></View> */}- </View>- <View- style={{- borderWidth: 1,- borderColor: colors.navbg,- height: 2,- backgroundColor: colors.navbg,- width: '100%',- marginBottom: 5,- }}- />- <FlatList- data={[- {- name: 'Home',- icon: 'home',- func: () => NavigationService.navigate('Home'),- },+ </View>+ <View+ style={{+ borderWidth: 1,+ borderColor: colors.navbg,+ height: 2,+ backgroundColor: colors.navbg,+ width: '100%',+ marginBottom: 5,+ }}+ />+ <FlatList+ data={[+ {+ name: 'Home',+ icon: 'home',+ func: () => NavigationService.navigate('Home'),+ },- {- name: 'Notebooks',- icon: 'book',- func: () => NavigationService.navigate('Folders'),- },- {- name: 'Lists',- icon: 'list',- func: () => NavigationService.navigate('Favorites'),- },- {- name: 'Favorites',- icon: 'star',- func: () => NavigationService.navigate('Favorites'),- },+ {+ name: 'Notebooks',+ icon: 'book',+ func: () => NavigationService.navigate('Folders'),+ },+ {+ name: 'Lists',+ icon: 'list',+ func: () => NavigationService.navigate('Lists'),+ },+ {+ name: 'Favorites',+ icon: 'star',+ func: () => NavigationService.navigate('Favorites'),+ },- {- name: 'Dark Mode',- icon: 'moon',- func: () => NavigationService.navigate('Folders'),- switch: true,- on: false,- },- {- name: 'Trash',- icon: 'trash',- func: () => NavigationService.navigate('Folders'),- },- {- name: 'Settings',- icon: 'settings',- func: () => NavigationService.navigate('Folders'),- },- ]}- keyExtractor={(item, index) => item.name}- renderItem={({item, index}) => (- <TouchableOpacity- activeOpacity={opacity}- onPress={() => {- item.func();- }}- style={{- width: '100%',- alignSelf: 'center',- flexDirection: 'row',- justifyContent: 'space-between',- alignItems: 'center',- paddingHorizontal: ph,- paddingVertical: 10,- }}>- <View+ {+ name: 'Dark Mode',+ icon: 'moon',+ func: () => NavigationService.navigate('Folders'),+ switch: true,+ on: false,+ },+ {+ name: 'Trash',+ icon: 'trash',+ func: () => NavigationService.navigate('Trash'),+ },+ {+ name: 'Settings',+ icon: 'settings',+ func: () => NavigationService.navigate('Settings'),+ },+ ]}+ keyExtractor={(item, index) => item.name}+ renderItem={({item, index}) => (+ <TouchableOpacity+ activeOpacity={opacity}+ onPress={() => {+ item.func();+ }}style={{+ width: '100%',+ alignSelf: 'center',flexDirection: 'row',+ justifyContent: 'space-between',alignItems: 'center',+ paddingHorizontal: ph,+ paddingVertical: 15,}}>- <Icon- style={{- width: 30,- }}- name={item.icon}- color={colors.icon}- size={SIZE.lg}- />- <Text+ <Viewstyle={{- fontFamily: WEIGHT.medium,- fontSize: SIZE.sm,+ flexDirection: 'row',+ alignItems: 'center',}}>- {item.name}- </Text>- </View>- {item.switch ? (- <Icon- size={SIZE.lg}- color={item.on ? colors.accent : colors.icon}- name={item.on ? 'toggle-right' : 'toggle-left'}- />- ) : (- undefined- )}- </TouchableOpacity>- )}- />- </View>+ <Icon+ style={{+ width: 30,+ }}+ name={item.icon}+ color={colors.icon}+ size={SIZE.md}+ />+ <Text+ style={{+ fontFamily: WEIGHT.medium,+ fontSize: SIZE.sm - 1,+ }}>+ {item.name}+ </Text>+ </View>+ {item.switch ? (+ <Icon+ size={SIZE.lg}+ color={item.on ? colors.accent : colors.icon}+ name={item.on ? 'toggle-right' : 'toggle-left'}+ />+ ) : (+ undefined+ )}+ </TouchableOpacity>+ )}+ />+ </View>- <View>- <View- style={{- width: '100%',- alignSelf: 'center',- flexDirection: 'row',- justifyContent: 'flex-start',- alignItems: 'center',- paddingHorizontal: ph,- marginTop: 20,- }}>- <Icon+ <View>+ <Viewstyle={{- width: 30,+ width: '100%',+ alignSelf: 'center',+ flexDirection: 'row',+ justifyContent: 'flex-start',+ alignItems: 'center',+ paddingHorizontal: ph,+ marginTop: 20,+ }}>+ <Icon+ style={{+ width: 30,+ }}+ name="tag"+ color={colors.icon}+ size={SIZE.md}+ />+ <Text+ style={{+ fontFamily: WEIGHT.medium,+ fontSize: SIZE.sm - 1,+ marginTop: -5,+ }}>+ Tags+ </Text>+ </View>++ <View+ style={{+ borderWidth: 1,+ borderColor: colors.navbg,+ height: 2,+ backgroundColor: colors.navbg,+ width: '100%',+ marginBottom: 5,}}- name="tag"- color={colors.icon}- size={SIZE.md}/>- <Text- style={{- fontFamily: WEIGHT.medium,- fontSize: SIZE.sm,- marginTop: -5,+ <ScrollView+ contentContainerStyle={{+ flexDirection: 'row',+ flexWrap: 'wrap',+ paddingHorizontal: '5%',+ marginBottom: 20,}}>- Tags- </Text>- </View>-- <View- style={{- borderWidth: 1,- borderColor: colors.navbg,- height: 2,- backgroundColor: colors.navbg,- width: '100%',- marginBottom: 5,- }}- />- <ScrollView- contentContainerStyle={{- flexDirection: 'row',- flexWrap: 'wrap',- paddingHorizontal: '5%',- marginBottom: 20,- }}>- {['home', 'office', 'work', 'book_notes', 'poem', 'lists', 'water'].map(- item => (+ {[+ 'home',+ 'office',+ 'work',+ 'book_notes',+ 'poem',+ 'lists',+ 'water',+ ].map(item => (<TouchableOpacitystyle={{flexDirection: 'row',@@ -370,115 +394,115 @@ export const RenderSideMenu = ({colors, close}) => (}}><Textstyle={{- fontFamily: WEIGHT.medium,- fontSize: SIZE.sm,+ fontFamily: WEIGHT.regular,+ fontSize: SIZE.sm - 2,color: colors.icon,}}>#{item}</Text></TouchableOpacity>- ),- )}- </ScrollView>+ ))}+ </ScrollView>- <View- style={{- width: '100%',- alignSelf: 'center',- flexDirection: 'row',- justifyContent: 'flex-start',- alignItems: 'center',- paddingHorizontal: ph,- marginTop: 20,- }}>- <Icon+ <Viewstyle={{- width: 30,+ width: '100%',+ alignSelf: 'center',+ flexDirection: 'row',+ justifyContent: 'flex-start',+ alignItems: 'center',+ paddingHorizontal: ph,+ marginTop: 20,+ }}>+ <Icon+ style={{+ width: 30,+ }}+ name="circle"+ color={colors.icon}+ size={SIZE.md}+ />+ <Text+ style={{+ fontFamily: WEIGHT.medium,+ fontSize: SIZE.sm - 1,+ marginTop: -5,+ }}>+ Colors+ </Text>+ </View>+ <View+ style={{+ borderWidth: 1,+ borderColor: colors.navbg,+ height: 2,+ backgroundColor: colors.navbg,+ width: '100%',+ marginBottom: 5,}}- name="circle"- color={colors.icon}- size={SIZE.md}/>- <Text- style={{- fontFamily: WEIGHT.medium,- fontSize: SIZE.sm,- marginTop: -5,+ <ScrollView+ contentContainerStyle={{+ flexDirection: 'row',+ flexWrap: 'wrap',+ paddingHorizontal: '5%',+ marginBottom: 40,}}>- Colors- </Text>- </View>- <View- style={{- borderWidth: 1,- borderColor: colors.navbg,- height: 2,- backgroundColor: colors.navbg,- width: '100%',- marginBottom: 5,- }}- />- <ScrollView- contentContainerStyle={{- flexDirection: 'row',- flexWrap: 'wrap',- paddingHorizontal: '5%',- marginBottom: 40,- }}>- {['red', 'yellow', 'green', 'blue', 'purple', 'orange', 'gray'].map(- item => (- <TouchableOpacity- style={{- flexDirection: 'row',- justifyContent: 'flex-start',- alignItems: 'center',- margin: 5,- }}>- <View+ {['red', 'yellow', 'green', 'blue', 'purple', 'orange', 'gray'].map(+ item => (+ <TouchableOpacitystyle={{- width: 40,- height: 25,- backgroundColor: item,- borderRadius: 5,- }}- />- </TouchableOpacity>- ),- )}- </ScrollView>-- <View- style={{- backgroundColor: '#F3A712',- width: '95%',- alignSelf: 'center',- borderRadius: 5,- flexDirection: 'row',- justifyContent: 'space-between',- alignItems: 'center',- height: h * 0.05,- paddingHorizontal: ph,- marginVertical: 10,- }}>- <Text- style={{- fontFamily: WEIGHT.medium,- color: 'white',- }}>- Upgrade to Pro- </Text>+ flexDirection: 'row',+ justifyContent: 'flex-start',+ alignItems: 'center',+ margin: 5,+ }}>+ <View+ style={{+ width: 40,+ height: 25,+ backgroundColor: item,+ borderRadius: 5,+ }}+ />+ </TouchableOpacity>+ ),+ )}+ </ScrollView><Viewstyle={{- ...getElevation(5),- paddingHorizontal: ph,- backgroundColor: 'white',- paddingVertical: pv - 8,+ backgroundColor: '#F3A712',+ width: '90%',+ alignSelf: 'center',borderRadius: 5,+ flexDirection: 'row',+ justifyContent: 'space-between',+ alignItems: 'center',+ height: 40,+ paddingHorizontal: ph,+ marginVertical: 10,}}>- <Icon name="star" color="#FCBA04" size={SIZE.lg} />+ <Text+ style={{+ fontFamily: WEIGHT.medium,+ color: 'white',+ }}>+ Upgrade to Pro+ </Text>++ <View+ style={{+ ...getElevation(5),+ paddingHorizontal: ph,+ backgroundColor: 'white',+ paddingVertical: pv - 8,+ borderRadius: 5,+ }}>+ <Icon name="star" color="#FCBA04" size={SIZE.lg} />+ </View></View></View>- </View>+ </ScrollView></SafeAreaView>);diff --git a/apps/mobile/src/views/Login/index.js b/apps/mobile/src/views/Login/index.jsindex dd4f5d415..47f31da0c 100644--- a/apps/mobile/src/views/Login/index.js+++ b/apps/mobile/src/views/Login/index.js@@ -1,4 +1,4 @@-import React, {useEffect, useState} from 'react';+import React, {useEffect, useState, createRef} from 'react';import {ScrollView,View,@@ -79,6 +79,8 @@ Login.navigationOptions = {export default Login;const renderLogin = colors => {+ const _email = createRef();+ const _pass = createRef();return (<Viewstyle={{@@ -89,9 +91,25 @@ const renderLogin = colors => {}}><View><TextInput+ ref={_email}+ onFocus={() => {+ _email.current.setNativeProps({+ style: {+ borderColor: colors.navbg,+ },+ });+ }}+ onBlur={() => {+ _email.current.setNativeProps({+ style: {+ borderColor: '#f0f0f0',+ },+ });+ }}style={{padding: pv,- backgroundColor: colors.navbg,+ borderWidth: 1.5,+ borderColor: '#f0f0f0',marginHorizontal: '5%',borderRadius: 5,fontSize: SIZE.md,@@ -102,9 +120,25 @@ const renderLogin = colors => {placeholderTextColor={colors.icon}/><TextInput+ ref={_pass}+ onFocus={() => {+ _pass.current.setNativeProps({+ style: {+ borderColor: colors.navbg,+ },+ });+ }}+ onBlur={() => {+ _pass.current.setNativeProps({+ style: {+ borderColor: '#f0f0f0',+ },+ });+ }}style={{padding: pv,- backgroundColor: colors.navbg,+ borderWidth: 1.5,+ borderColor: '#f0f0f0',marginHorizontal: '5%',borderRadius: 5,fontSize: SIZE.md,diff --git a/apps/mobile/src/views/Notes/index.js b/apps/mobile/src/views/Notes/index.jsnew file mode 100644index 000000000..cd115608c--- /dev/null+++ b/apps/mobile/src/views/Notes/index.js@@ -0,0 +1,54 @@+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 {Header} from '../../components/header';++const w = Dimensions.get('window').width;+const h = Dimensions.get('window').height;++export const Notes = ({navigation}) => {+ const [colors, setColors] = useState(COLOR_SCHEME);+ let params = navigation.state ? navigation.state.params : null;++ useEffect(() => {+ if (!params) {+ params = {+ heading: 'Notes',+ };+ }+ }, []);++ return (+ <SafeAreaView>+ <Header colors={colors} heading={params.heading} canGoBack={false} />+ </SafeAreaView>+ );+};++Notes.navigationOptions = {+ header: null,+};++export default Notes;diff --git a/apps/mobile/src/views/Settings/index.js b/apps/mobile/src/views/Settings/index.jsnew file mode 100644index 000000000..3529d8d99--- /dev/null+++ b/apps/mobile/src/views/Settings/index.js@@ -0,0 +1,45 @@+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 {Header} from '../../components/header';++const w = Dimensions.get('window').width;+const h = Dimensions.get('window').height;++export const Settings = ({navigation}) => {+ const [colors, setColors] = useState(COLOR_SCHEME);++ return (+ <SafeAreaView>+ <Header colors={colors} heading="Settings" canGoBack={false} />+ </SafeAreaView>+ );+};++Settings.navigationOptions = {+ header: null,+};++export default Settings;diff --git a/apps/mobile/src/views/Signup/index.js b/apps/mobile/src/views/Signup/index.jsindex b05a9c5d3..ddd6e0588 100644--- a/apps/mobile/src/views/Signup/index.js+++ b/apps/mobile/src/views/Signup/index.js@@ -1,4 +1,4 @@-import React, {useEffect, useState} from 'react';+import React, {useEffect, useState, createRef} from 'react';import {ScrollView,View,@@ -62,11 +62,18 @@ export const Signup = ({navigation}) => {Signup.navigationOptions = {header: null,+ headerStyle: {+ backgroundColor: 'transparent',+ borderBottomWidth: 0,+ height: 0,+ },};export default Signup;const renderSignup = colors => {+ const _email = createRef();+ const _pass = createRef();return (<Viewstyle={{@@ -77,9 +84,25 @@ const renderSignup = colors => {}}><View><TextInput+ ref={_email}+ onFocus={() => {+ _email.current.setNativeProps({+ style: {+ borderColor: colors.navbg,+ },+ });+ }}+ onBlur={() => {+ _email.current.setNativeProps({+ style: {+ borderColor: '#f0f0f0',+ },+ });+ }}style={{padding: pv,- backgroundColor: colors.navbg,+ borderWidth: 1.5,+ borderColor: '#f0f0f0',marginHorizontal: '5%',borderRadius: 5,fontSize: SIZE.md,@@ -90,9 +113,25 @@ const renderSignup = colors => {placeholderTextColor={colors.icon}/><TextInput+ ref={_pass}+ onFocus={() => {+ _pass.current.setNativeProps({+ style: {+ borderColor: colors.navbg,+ },+ });+ }}+ onBlur={() => {+ _pass.current.setNativeProps({+ style: {+ borderColor: '#f0f0f0',+ },+ });+ }}style={{padding: pv,- backgroundColor: colors.navbg,+ borderWidth: 1.5,+ borderColor: '#f0f0f0',marginHorizontal: '5%',borderRadius: 5,fontSize: SIZE.md,diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.jsnew file mode 100644index 000000000..18c68d46c--- /dev/null+++ b/apps/mobile/src/views/Trash/index.js@@ -0,0 +1,45 @@+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 {Header} from '../../components/header';++const w = Dimensions.get('window').width;+const h = Dimensions.get('window').height;++export const Trash = ({navigation}) => {+ const [colors, setColors] = useState(COLOR_SCHEME);++ return (+ <SafeAreaView>+ <Header colors={colors} heading="Trash" canGoBack={false} />+ </SafeAreaView>+ );+};++Trash.navigationOptions = {+ header: null,+};++export default Trash;