mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 15:09:33 +01:00
refactor
This commit is contained in:
@@ -1,17 +1,17 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {Modal, DeviceEventEmitter, View, TouchableOpacity} from 'react-native';
|
import {Modal, TouchableOpacity, View} from 'react-native';
|
||||||
|
import * as Animatable from 'react-native-animatable';
|
||||||
import {createAppContainer} from 'react-navigation';
|
import {createAppContainer} from 'react-navigation';
|
||||||
import {createStackNavigator} from 'react-navigation-stack';
|
import {createStackNavigator} from 'react-navigation-stack';
|
||||||
import {ACTIONS} from '../../provider/actions';
|
|
||||||
import * as Animatable from 'react-native-animatable';
|
|
||||||
import Login from '../../views/Login';
|
|
||||||
import Signup from '../../views/Signup';
|
|
||||||
import ForgotPassword from '../../views/ForgotPassword';
|
|
||||||
import {DDS} from '../../../App';
|
import {DDS} from '../../../App';
|
||||||
import {getElevation, w} from '../../utils/utils';
|
import {normalize} from '../../common/common';
|
||||||
|
import {ACTIONS} from '../../provider/actions';
|
||||||
import {eSendEvent} from '../../services/eventManager';
|
import {eSendEvent} from '../../services/eventManager';
|
||||||
import {eLoginDialogNavigateBack} from '../../services/events';
|
import {eLoginDialogNavigateBack} from '../../services/events';
|
||||||
import {normalize} from '../../common/common';
|
import {getElevation} from '../../utils/utils';
|
||||||
|
import ForgotPassword from '../../views/ForgotPassword';
|
||||||
|
import Login from '../../views/Login';
|
||||||
|
import Signup from '../../views/Signup';
|
||||||
import {updateEvent} from '../DialogManager/recievers';
|
import {updateEvent} from '../DialogManager/recievers';
|
||||||
|
|
||||||
const fade = props => {
|
const fade = props => {
|
||||||
|
|||||||
@@ -1,17 +1,16 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {Modal, DeviceEventEmitter, View, TouchableOpacity} from 'react-native';
|
import {Modal, TouchableOpacity, View} from 'react-native';
|
||||||
|
import * as Animatable from 'react-native-animatable';
|
||||||
import {createAppContainer} from 'react-navigation';
|
import {createAppContainer} from 'react-navigation';
|
||||||
import {createStackNavigator} from 'react-navigation-stack';
|
import {createStackNavigator} from 'react-navigation-stack';
|
||||||
|
import {DDS} from '../../../App';
|
||||||
import {ACTIONS} from '../../provider/actions';
|
import {ACTIONS} from '../../provider/actions';
|
||||||
|
import {eSendEvent} from '../../services/eventManager';
|
||||||
|
import {eMoveNoteDialogNavigateBack} from '../../services/events';
|
||||||
|
import {getElevation} from '../../utils/utils';
|
||||||
import Folders from '../../views/Folders';
|
import Folders from '../../views/Folders';
|
||||||
import Notebook from '../../views/Notebook';
|
import Notebook from '../../views/Notebook';
|
||||||
import Notes from '../../views/Notes';
|
import Notes from '../../views/Notes';
|
||||||
|
|
||||||
import * as Animatable from 'react-native-animatable';
|
|
||||||
import {DDS} from '../../../App';
|
|
||||||
import {getElevation} from '../../utils/utils';
|
|
||||||
import {eSendEvent} from '../../services/eventManager';
|
|
||||||
import {eMoveNoteDialogNavigateBack} from '../../services/events';
|
|
||||||
import {updateEvent} from '../DialogManager/recievers';
|
import {updateEvent} from '../DialogManager/recievers';
|
||||||
|
|
||||||
const fade = props => {
|
const fade = props => {
|
||||||
|
|||||||
@@ -1,34 +1,34 @@
|
|||||||
import React, {useEffect} from 'react';
|
import React from 'react';
|
||||||
import {
|
import {
|
||||||
|
Platform,
|
||||||
|
ScrollView,
|
||||||
|
StatusBar,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View,
|
View,
|
||||||
ScrollView,
|
|
||||||
StatusBar,
|
|
||||||
Platform,
|
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
|
import MMKV from 'react-native-mmkv-storage';
|
||||||
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
|
import {DDS} from '../../../App';
|
||||||
import {
|
import {
|
||||||
opacity,
|
|
||||||
pv,
|
|
||||||
SIZE,
|
|
||||||
WEIGHT,
|
|
||||||
ACCENT,
|
ACCENT,
|
||||||
COLOR_SCHEME,
|
COLOR_SCHEME,
|
||||||
COLOR_SCHEME_DARK,
|
COLOR_SCHEME_DARK,
|
||||||
COLOR_SCHEME_LIGHT,
|
COLOR_SCHEME_LIGHT,
|
||||||
|
opacity,
|
||||||
|
pv,
|
||||||
setColorScheme,
|
setColorScheme,
|
||||||
|
SIZE,
|
||||||
|
WEIGHT,
|
||||||
} from '../../common/common';
|
} from '../../common/common';
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
|
||||||
import Container from '../../components/Container';
|
import Container from '../../components/Container';
|
||||||
|
import {updateEvent} from '../../components/DialogManager/recievers';
|
||||||
import {useTracked} from '../../provider';
|
import {useTracked} from '../../provider';
|
||||||
import {w, hexToRGBA, getElevation} from '../../utils/utils';
|
|
||||||
import {ACTIONS} from '../../provider/actions';
|
import {ACTIONS} from '../../provider/actions';
|
||||||
import MMKV from 'react-native-mmkv-storage';
|
|
||||||
import {DDS} from '../../../App';
|
|
||||||
import {eSendEvent} from '../../services/eventManager';
|
import {eSendEvent} from '../../services/eventManager';
|
||||||
import {eOpenLoginDialog} from '../../services/events';
|
import {eOpenLoginDialog} from '../../services/events';
|
||||||
import NavigationService from '../../services/NavigationService';
|
import NavigationService from '../../services/NavigationService';
|
||||||
import {updateEvent} from '../../components/DialogManager/recievers';
|
import {hexToRGBA, w} from '../../utils/utils';
|
||||||
|
|
||||||
export async function setSetting(settings, name, value) {
|
export async function setSetting(settings, name, value) {
|
||||||
let s = {...settings};
|
let s = {...settings};
|
||||||
|
|||||||
Reference in New Issue
Block a user