Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

update

ammarahm-ed3d6aeb490348
diff --git a/apps/mobile/src/views/Folders/index.js b/apps/mobile/src/views/Folders/index.js
index 2befc1f6a..0985e76f7 100644
--- a/apps/mobile/src/views/Folders/index.js
+++ b/apps/mobile/src/views/Folders/index.js
@@ -119,6 +119,7 @@ export const Folders = ({navigation}) => {
}}
onScroll={event => {
y = event.nativeEvent.contentOffset.y;
+ if (buttonHide) return;
if (y > offsetY) {
if (y - offsetY < 150 || countDown > 0) return;
countDown = 1;
@@ -175,9 +176,9 @@ export const Folders = ({navigation}) => {
fontFamily: WEIGHT.semibold,
color: 'white',
}}>
- Create a new notebook
+ <Icon name="plus" color="white" size={SIZE.lg} />
+ {' '} Create a new notebook
</Text>
- <Icon name="plus" color="white" size={SIZE.lg} />
</TouchableOpacity>
</KeyboardAvoidingView>
</SafeAreaView>
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index b70918079..aa377e2fb 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -192,6 +192,7 @@ export const Home = ({navigation}) => {
<NotesList
margin={margin}
onScroll={y => {
+ if (buttonHide) return;
if (y > offsetY) {
if (y - offsetY < 150 || countDown > 0) return;
countDown = 1;
@@ -211,6 +212,7 @@ export const Home = ({navigation}) => {
) : (
<RecentList
onScroll={y => {
+ if (buttonHide) return;
if (y > offsetY) {
if (y - offsetY < 150 || countDown > 0) return;
countDown = 1;
@@ -257,10 +259,11 @@ export const Home = ({navigation}) => {
fontSize: SIZE.md,
color: 'white',
fontFamily: WEIGHT.bold,
+ textAlignVertical: 'center',
}}>
- Add a new note
+ <Icon name="plus" color="white" size={SIZE.lg} />
+ {' '}Add a new note
</Text>
- <Icon name="plus" color="white" size={SIZE.lg} />
</View>
</TouchableOpacity>
)}
diff --git a/apps/mobile/src/views/Notebook/index.js b/apps/mobile/src/views/Notebook/index.js
index 0a1bb2d04..4131bb6a6 100644
--- a/apps/mobile/src/views/Notebook/index.js
+++ b/apps/mobile/src/views/Notebook/index.js
@@ -103,6 +103,7 @@ export const Notebook = ({navigation}) => {
data={params.notebook.topics}
onScroll={event => {
y = event.nativeEvent.contentOffset.y;
+ if (buttonHide) return;
if (y > offsetY) {
if (y - offsetY < 150 || countDown > 0) return;
countDown = 1;
@@ -185,9 +186,9 @@ export const Notebook = ({navigation}) => {
fontFamily: WEIGHT.semibold,
color: 'white',
}}>
+ <Icon name="plus" color="white" size={SIZE.lg} />
Add a new topic
</Text>
- <Icon name="plus" color="white" size={SIZE.lg} />
</TouchableOpacity>
</KeyboardAvoidingView>
</SafeAreaView>
diff --git a/apps/mobile/src/views/Trash/index.js b/apps/mobile/src/views/Trash/index.js
index f267299b7..5dd707211 100644
--- a/apps/mobile/src/views/Trash/index.js
+++ b/apps/mobile/src/views/Trash/index.js
@@ -21,7 +21,7 @@ import {
FONT,
WEIGHT,
} from '../../common/common';
-import Icon from 'react-native-vector-icons/Ionicons';
+import Icon from 'react-native-vector-icons/Feather';
import {Reminder} from '../../components/Reminder';
import {ListItem} from '../../components/ListItem';
import {Header} from '../../components/header';
@@ -41,6 +41,9 @@ export const Trash = ({navigation}) => {
columnWrapperStyle={{
width: '45%',
}}
+ style={{
+ height: '80%',
+ }}
data={[
{
title: 'my note',
@@ -55,6 +58,34 @@ export const Trash = ({navigation}) => {
]}
renderItem={({item, index}) => <NoteItem item={item} />}
/>
+ <TouchableOpacity
+ activeOpacity={opacity}
+ onPress={() => {
+ setAddNotebook(true);
+ }}
+ style={{
+ borderRadius: 5,
+ width: '90%',
+ marginHorizontal: '5%',
+ paddingHorizontal: ph,
+
+ paddingVertical: pv + 5,
+ flexDirection: 'row',
+ justifyContent: 'space-between',
+ alignItems: 'center',
+ marginBottom: 15,
+ backgroundColor: colors.accent,
+ }}>
+ <Text
+ style={{
+ fontSize: SIZE.md,
+ fontFamily: WEIGHT.semibold,
+ color: 'white',
+ }}>
+ <Icon name="plus" color="white" size={SIZE.lg} />
+ {' '}Clear all Trash
+ </Text>
+ </TouchableOpacity>
</SafeAreaView>
);
};