mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-22 22:49:45 +01:00
cleanup
This commit is contained in:
@@ -21,9 +21,7 @@ import {Search} from '../SearchInput';
|
|||||||
import SelectionHeader from '../SelectionHeader';
|
import SelectionHeader from '../SelectionHeader';
|
||||||
import {inputRef} from '../../utils/refs';
|
import {inputRef} from '../../utils/refs';
|
||||||
|
|
||||||
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
const AnimatedSafeAreaView = Animatable.createAnimatableComponent(SafeAreaView);
|
||||||
SafeAreaView,
|
|
||||||
);
|
|
||||||
|
|
||||||
const AnimatedTouchableOpacity = Animatable.createAnimatableComponent(
|
const AnimatedTouchableOpacity = Animatable.createAnimatableComponent(
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
|
|||||||
@@ -22,8 +22,9 @@ import {
|
|||||||
} from '../../common/common';
|
} from '../../common/common';
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {ACTIONS} from '../../provider/actions';
|
import {ACTIONS} from '../../provider/actions';
|
||||||
import {AnimatedSafeAreaView} from '../../views/Home';
|
|
||||||
import {w, hexToRGBA, db} from '../../utils/utils';
|
import {w, hexToRGBA, db} from '../../utils/utils';
|
||||||
|
import {AnimatedSafeAreaView} from '../../utils/refs';
|
||||||
|
|
||||||
let tagsInputRef;
|
let tagsInputRef;
|
||||||
let tagsList;
|
let tagsList;
|
||||||
|
|||||||
@@ -17,10 +17,6 @@ import {eSendEvent} from '../../services/eventManager';
|
|||||||
import {eOpenMoveNoteDialog, eOpenSimpleDialog} from '../../services/events';
|
import {eOpenMoveNoteDialog, eOpenSimpleDialog} from '../../services/events';
|
||||||
import {TEMPLATE_DELETE} from '../DialogManager/templates';
|
import {TEMPLATE_DELETE} from '../DialogManager/templates';
|
||||||
|
|
||||||
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
|
||||||
SafeAreaView,
|
|
||||||
);
|
|
||||||
|
|
||||||
export const SelectionHeader = () => {
|
export const SelectionHeader = () => {
|
||||||
// State
|
// State
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
import {createRef} from 'react';
|
import {createRef} from 'react';
|
||||||
|
import * as Animatable from 'react-native-animatable';
|
||||||
|
import {SafeAreaView} from 'react-native';
|
||||||
export const sideMenuRef = createRef();
|
export const sideMenuRef = createRef();
|
||||||
|
|
||||||
export const inputRef = createRef();
|
export const inputRef = createRef();
|
||||||
|
|
||||||
|
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
||||||
|
SafeAreaView,
|
||||||
|
);
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import React from 'react';
|
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 {opacity, pv, SIZE, WEIGHT} from '../../common/common';
|
||||||
import {Header} from '../../components/header';
|
import {Header} from '../../components/header';
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {AnimatedSafeAreaView} from '../Home';
|
import {AnimatedSafeAreaView} from '../../utils/refs';
|
||||||
|
|
||||||
export const AccountSettings = ({navigation}) => {
|
export const AccountSettings = ({navigation}) => {
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
|
|||||||
@@ -1,6 +1,4 @@
|
|||||||
import React, {useEffect} from 'react';
|
import React, {useEffect} from 'react';
|
||||||
import {SafeAreaView} from 'react-native';
|
|
||||||
import * as Animatable from 'react-native-animatable';
|
|
||||||
import {useIsFocused} from 'react-navigation-hooks';
|
import {useIsFocused} from 'react-navigation-hooks';
|
||||||
import Container from '../../components/Container';
|
import Container from '../../components/Container';
|
||||||
import {NotesList} from '../../components/NotesList';
|
import {NotesList} from '../../components/NotesList';
|
||||||
@@ -13,9 +11,6 @@ import {eScrollEvent, eOnLoadNote} from '../../services/events';
|
|||||||
import {openEditorAnimation} from '../../utils/animations';
|
import {openEditorAnimation} from '../../utils/animations';
|
||||||
import {sideMenuRef} from '../../utils/refs';
|
import {sideMenuRef} from '../../utils/refs';
|
||||||
let count = 0;
|
let count = 0;
|
||||||
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
|
||||||
SafeAreaView,
|
|
||||||
);
|
|
||||||
|
|
||||||
export const Home = ({navigation}) => {
|
export const Home = ({navigation}) => {
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
|
|||||||
Reference in New Issue
Block a user