Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix item pin animation

ammarahm-ed8fd18397a033
diff --git a/apps/mobile/src/views/Editor/tiny/toolbar/itempin.js b/apps/mobile/src/views/Editor/tiny/toolbar/itempin.js
index 9a7e4384b..1cedfe3d6 100644
--- a/apps/mobile/src/views/Editor/tiny/toolbar/itempin.js
+++ b/apps/mobile/src/views/Editor/tiny/toolbar/itempin.js
@@ -28,13 +28,12 @@ const ToolbarItemPin = ({format, color}) => {
toValue: val,
duration: time,
easing: Easing.in(Easing.ease),
- }).start(async () => {
- await sleep(time);
- animating = false;
- });
+ }).start();
+ await sleep(time);
+ animating = false;
}
- const show = async (data) => {
+ const show = async data => {
if (data?.title === format) {
setVisible(true);
await sleep(5);
@@ -45,7 +44,7 @@ const ToolbarItemPin = ({format, color}) => {
setVisible(false);
}
};
-
+
return (
visible && (
<Animated.View