mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-23 23:19:40 +01:00
reduce save note timer
This commit is contained in:
@@ -4,12 +4,11 @@ import {
|
|||||||
KeyboardAvoidingView,
|
KeyboardAvoidingView,
|
||||||
Linking,
|
Linking,
|
||||||
Platform,
|
Platform,
|
||||||
|
SafeAreaView,
|
||||||
StatusBar,
|
StatusBar,
|
||||||
Text,
|
Text,
|
||||||
TouchableOpacity,
|
TouchableOpacity,
|
||||||
View,
|
View,
|
||||||
SafeAreaView,
|
|
||||||
Keyboard,
|
|
||||||
} from 'react-native';
|
} from 'react-native';
|
||||||
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
|
||||||
import WebView from 'react-native-webview';
|
import WebView from 'react-native-webview';
|
||||||
@@ -41,7 +40,6 @@ import {
|
|||||||
timeConverter,
|
timeConverter,
|
||||||
ToastEvent,
|
ToastEvent,
|
||||||
} from '../../utils/utils';
|
} from '../../utils/utils';
|
||||||
import {TabRouter} from 'react-navigation';
|
|
||||||
|
|
||||||
const EditorWebView = createRef();
|
const EditorWebView = createRef();
|
||||||
let note = {};
|
let note = {};
|
||||||
@@ -151,7 +149,7 @@ const Editor = ({navigation, noMenu}) => {
|
|||||||
onChange(evt.nativeEvent.data);
|
onChange(evt.nativeEvent.data);
|
||||||
timer = setTimeout(() => {
|
timer = setTimeout(() => {
|
||||||
saveNote.call(this, true);
|
saveNote.call(this, true);
|
||||||
}, 1000);
|
}, 500);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user