This commit is contained in:
ammarahm-ed
2020-03-21 09:54:43 +05:00
parent 175457393f
commit fa19d623f8
6 changed files with 11 additions and 16 deletions

View File

@@ -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,

View File

@@ -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;

View File

@@ -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();

View File

@@ -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,
);

View File

@@ -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();

View File

@@ -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();