From 27d6a96b78de7d0c43aa4262ad61c7c370a25284 Mon Sep 17 00:00:00 2001 From: Chris Calo Date: Sun, 12 Sep 2021 23:47:49 -0400 Subject: [PATCH] Separated export calls from definition logic --- Draggable.js | 4 +++- Draggable.tsx | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Draggable.js b/Draggable.js index d1c8650..20fc0e5 100644 --- a/Draggable.js +++ b/Draggable.js @@ -20,7 +20,7 @@ function clamp(number, min, max) { return Math.max(min, Math.min(number, max)); } -export default function Draggable(props) { +function Draggable(props) { const { renderText, isCircle, @@ -345,3 +345,5 @@ const styles = StyleSheet.create({ borderWidth: 4, }, }); + +export default Draggable; diff --git a/Draggable.tsx b/Draggable.tsx index 363ab4a..393c43b 100644 --- a/Draggable.tsx +++ b/Draggable.tsx @@ -56,7 +56,7 @@ interface IProps { maxY?: number; }; -export default function Draggable(props: IProps) { +function Draggable(props: IProps) { const { renderText, isCircle, @@ -344,3 +344,5 @@ const styles = StyleSheet.create({ borderWidth: 4, }, }); + +export default Draggable;