Skip to content

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

cleanup

ammarahm-edfa19d623f860
diff --git a/apps/mobile/src/components/Container/index.js b/apps/mobile/src/components/Container/index.js
index 89d33f3c6..c56161512 100644
--- a/apps/mobile/src/components/Container/index.js
+++ b/apps/mobile/src/components/Container/index.js
@@ -21,9 +21,7 @@ import {Search} from '../SearchInput';
import SelectionHeader from '../SelectionHeader';
import {inputRef} from '../../utils/refs';
-export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
- SafeAreaView,
-);
+const AnimatedSafeAreaView = Animatable.createAnimatableComponent(SafeAreaView);
const AnimatedTouchableOpacity = Animatable.createAnimatableComponent(
TouchableOpacity,
diff --git a/apps/mobile/src/components/EditorMenu/index.js b/apps/mobile/src/components/EditorMenu/index.js
index 6c2a294d6..a689e6cd4 100644
--- a/apps/mobile/src/components/EditorMenu/index.js
+++ b/apps/mobile/src/components/EditorMenu/index.js
@@ -22,8 +22,9 @@ import {
} from '../../common/common';
import {useTracked} from '../../provider';
import {ACTIONS} from '../../provider/actions';
-import {AnimatedSafeAreaView} from '../../views/Home';
+
import {w, hexToRGBA, db} from '../../utils/utils';
+import {AnimatedSafeAreaView} from '../../utils/refs';
let tagsInputRef;
let tagsList;
diff --git a/apps/mobile/src/components/SelectionHeader/index.js b/apps/mobile/src/components/SelectionHeader/index.js
index 372e35d0f..d234365a3 100644
--- a/apps/mobile/src/components/SelectionHeader/index.js
+++ b/apps/mobile/src/components/SelectionHeader/index.js
@@ -17,10 +17,6 @@ import {eSendEvent} from '../../services/eventManager';
import {eOpenMoveNoteDialog, eOpenSimpleDialog} from '../../services/events';
import {TEMPLATE_DELETE} from '../DialogManager/templates';
-export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
- SafeAreaView,
-);
-
export const SelectionHeader = () => {
// State
const [state, dispatch] = useTracked();
diff --git a/apps/mobile/src/utils/refs.js b/apps/mobile/src/utils/refs.js
index 58075516e..549b4ec1c 100644
--- a/apps/mobile/src/utils/refs.js
+++ b/apps/mobile/src/utils/refs.js
@@ -1,5 +1,10 @@
import {createRef} from 'react';
-
+import * as Animatable from 'react-native-animatable';
+import {SafeAreaView} from 'react-native';
export const sideMenuRef = createRef();
export const inputRef = createRef();
+
+export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
+ SafeAreaView,
+);
diff --git a/apps/mobile/src/views/AccountSettings/index.js b/apps/mobile/src/views/AccountSettings/index.js
index 410750542..70eb56577 100644
--- a/apps/mobile/src/views/AccountSettings/index.js
+++ b/apps/mobile/src/views/AccountSettings/index.js
@@ -1,9 +1,9 @@
import React from 'react';
-import {FlatList, Image, Text, TouchableOpacity, View} from 'react-native';
+import {FlatList, Text, TouchableOpacity, View} from 'react-native';
import {opacity, pv, SIZE, WEIGHT} from '../../common/common';
import {Header} from '../../components/header';
import {useTracked} from '../../provider';
-import {AnimatedSafeAreaView} from '../Home';
+import {AnimatedSafeAreaView} from '../../utils/refs';
export const AccountSettings = ({navigation}) => {
const [state, dispatch] = useTracked();
diff --git a/apps/mobile/src/views/Home/index.js b/apps/mobile/src/views/Home/index.js
index 6b3b4965a..9ee1c05e9 100755
--- a/apps/mobile/src/views/Home/index.js
+++ b/apps/mobile/src/views/Home/index.js
@@ -1,6 +1,4 @@
import React, {useEffect} from 'react';
-import {SafeAreaView} from 'react-native';
-import * as Animatable from 'react-native-animatable';
import {useIsFocused} from 'react-navigation-hooks';
import Container from '../../components/Container';
import {NotesList} from '../../components/NotesList';
@@ -13,9 +11,6 @@ import {eScrollEvent, eOnLoadNote} from '../../services/events';
import {openEditorAnimation} from '../../utils/animations';
import {sideMenuRef} from '../../utils/refs';
let count = 0;
-export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
- SafeAreaView,
-);
export const Home = ({navigation}) => {
const [state, dispatch] = useTracked();