mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
cleanup
This commit is contained in:
@@ -1,7 +1,3 @@
|
|||||||
/**
|
|
||||||
* @format
|
|
||||||
*/
|
|
||||||
|
|
||||||
import {AppRegistry} from 'react-native';
|
import {AppRegistry} from 'react-native';
|
||||||
import App from './App';
|
import App from './App';
|
||||||
import {name as appName} from './app.json';
|
import {name as appName} from './app.json';
|
||||||
|
|||||||
@@ -17,8 +17,9 @@ import {eSubscribeEvent, eUnSubscribeEvent} from '../../services/eventManager';
|
|||||||
import {eScrollEvent, eClearSearch} from '../../services/events';
|
import {eScrollEvent, eClearSearch} from '../../services/events';
|
||||||
import {db, getElevation, ToastEvent, DDS, selection} from '../../utils/utils';
|
import {db, getElevation, ToastEvent, DDS, selection} from '../../utils/utils';
|
||||||
import {Header} from '../header';
|
import {Header} from '../header';
|
||||||
import {Search, inputRef} from '../SearchInput';
|
import {Search} from '../SearchInput';
|
||||||
import SelectionHeader from '../SelectionHeader';
|
import SelectionHeader from '../SelectionHeader';
|
||||||
|
import {inputRef} from '../../utils/refs';
|
||||||
|
|
||||||
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
export const AnimatedSafeAreaView = Animatable.createAnimatableComponent(
|
||||||
SafeAreaView,
|
SafeAreaView,
|
||||||
|
|||||||
@@ -414,7 +414,6 @@ export const Menu = ({
|
|||||||
fontSize: SIZE.xxs,
|
fontSize: SIZE.xxs,
|
||||||
minWidth: 12,
|
minWidth: 12,
|
||||||
minHeight: 12,
|
minHeight: 12,
|
||||||
|
|
||||||
paddingHorizontal: 2,
|
paddingHorizontal: 2,
|
||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
}}>
|
}}>
|
||||||
|
|||||||
@@ -17,8 +17,6 @@ import {ToastEvent, hexToRGBA, DDS, db} from '../../utils/utils';
|
|||||||
import {NotesPlaceHolder} from '../ListPlaceholders';
|
import {NotesPlaceHolder} from '../ListPlaceholders';
|
||||||
import NoteItem from '../NoteItem';
|
import NoteItem from '../NoteItem';
|
||||||
import SelectionWrapper from '../SelectionWrapper';
|
import SelectionWrapper from '../SelectionWrapper';
|
||||||
|
|
||||||
import {inputRef} from '../SearchInput';
|
|
||||||
import {useIsFocused} from 'react-navigation-hooks';
|
import {useIsFocused} from 'react-navigation-hooks';
|
||||||
|
|
||||||
const sectionListRef = createRef();
|
const sectionListRef = createRef();
|
||||||
|
|||||||
@@ -6,11 +6,10 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
|||||||
import {br, SIZE, WEIGHT} from '../../common/common';
|
import {br, SIZE, WEIGHT} from '../../common/common';
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {DDS} from '../../utils/utils';
|
import {DDS} from '../../utils/utils';
|
||||||
|
import {inputRef} from '../../utils/refs';
|
||||||
|
|
||||||
const {Value, timing, block} = Animated;
|
const {Value, timing, block} = Animated;
|
||||||
|
|
||||||
export const inputRef = createRef();
|
|
||||||
|
|
||||||
export const Search = props => {
|
export const Search = props => {
|
||||||
const [state, dispatch] = useTracked();
|
const [state, dispatch] = useTracked();
|
||||||
const {colors, searchResults} = state;
|
const {colors, searchResults} = state;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import React, {useState} from 'react';
|
import React, {useState} from 'react';
|
||||||
import {FlatList, Platform, RefreshControl, Text, View} from 'react-native';
|
import {FlatList, Platform, RefreshControl, Text, View} from 'react-native';
|
||||||
import {SIZE, WEIGHT} from '../../common/common';
|
import {SIZE, WEIGHT} from '../../common/common';
|
||||||
import {inputRef} from '../../components/SearchInput';
|
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {ACTIONS} from '../../provider/actions';
|
import {ACTIONS} from '../../provider/actions';
|
||||||
import {eSendEvent} from '../../services/eventManager';
|
import {eSendEvent} from '../../services/eventManager';
|
||||||
|
|||||||
@@ -1,3 +1,5 @@
|
|||||||
import {createRef} from 'react';
|
import {createRef} from 'react';
|
||||||
|
|
||||||
export const sideMenuRef = createRef();
|
export const sideMenuRef = createRef();
|
||||||
|
|
||||||
|
export const inputRef = createRef();
|
||||||
|
|||||||
@@ -1,23 +1,14 @@
|
|||||||
import React, {useEffect, useState} from 'react';
|
import React, {useEffect, useState} from 'react';
|
||||||
import {
|
import {Dimensions, Text, TouchableOpacity, View} from 'react-native';
|
||||||
Dimensions,
|
import {useIsFocused} from 'react-navigation-hooks';
|
||||||
FlatList,
|
|
||||||
Platform,
|
|
||||||
RefreshControl,
|
|
||||||
Text,
|
|
||||||
TouchableOpacity,
|
|
||||||
View,
|
|
||||||
} from 'react-native';
|
|
||||||
import {pv, SIZE, WEIGHT} from '../../common/common';
|
import {pv, SIZE, WEIGHT} from '../../common/common';
|
||||||
import Container from '../../components/Container';
|
import Container from '../../components/Container';
|
||||||
import {TagsPlaceHolder} from '../../components/ListPlaceholders';
|
import {TagsPlaceHolder} from '../../components/ListPlaceholders';
|
||||||
|
import SimpleList from '../../components/SimpleList';
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {ACTIONS} from '../../provider/actions';
|
import {ACTIONS} from '../../provider/actions';
|
||||||
import NavigationService from '../../services/NavigationService';
|
import NavigationService from '../../services/NavigationService';
|
||||||
import {ToastEvent} from '../../utils/utils';
|
|
||||||
import {useIsFocused} from 'react-navigation-hooks';
|
|
||||||
import {inputRef} from '../../components/SearchInput';
|
|
||||||
import SimpleList from '../../components/SimpleList';
|
|
||||||
const w = Dimensions.get('window').width;
|
const w = Dimensions.get('window').width;
|
||||||
const h = Dimensions.get('window').height;
|
const h = Dimensions.get('window').height;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user