mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 06:59:31 +01:00
cleanup
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user