Skip to content

Commit 05438db

Browse files
committed
fix : nuke old animated pressable implementation
1 parent 5dbbb08 commit 05438db

File tree

4 files changed

+5
-160
lines changed

4 files changed

+5
-160
lines changed

src/quo/components/animated/pressable.cljs

Lines changed: 0 additions & 154 deletions
This file was deleted.

src/quo/components/button/view.cljs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(ns quo.components.button.view
2-
(:require [quo.components.animated.pressable :as animation]
3-
[quo.components.text :as text] ;; FIXME:
2+
(:require [quo.components.text :as text] ;; FIXME:
43
[quo.design-system.colors :as colors]
54
[quo.design-system.spacing :as spacing]
65
[quo.haptic :as haptic]
@@ -75,7 +74,7 @@
7574
optional-haptic (fn []
7675
(when haptic-feedback
7776
(haptic/trigger haptic-type)))]
78-
[animation/pressable
77+
[rn/pressable
7978
(merge {:bg-color background-color
8079
:border-radius border-radius
8180
:type type

src/quo/components/list/item.cljs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
(ns quo.components.list.item
2-
(:require [quo.components.animated.pressable :as animated]
3-
[quo.components.controls.view :as controls]
2+
(:require [quo.components.controls.view :as controls]
43
[quo.components.text :as text]
54
[quo.components.tooltip :as tooltip]
65
[quo.design-system.colors :as colors]
@@ -241,7 +240,6 @@
241240
(and (not on-press)
242241
(not on-long-press))
243242
rn/view
244-
animated animated/pressable
245243
:else rn/touchable-highlight)]
246244
[rn/view
247245
{:background-color (cond (not= background-color nil)

src/quo/react_native.cljs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126

127127
(def activity-indicator (reagent/adapt-react-class (.-ActivityIndicator ^js rn)))
128128

129+
(def pressable (reagent/adapt-react-class (.-Pressable ^js rn)))
130+
129131
;; Flat-list
130132
(def ^:private rn-flat-list (reagent/adapt-react-class (.-FlatList ^js rn)))
131133

0 commit comments

Comments
 (0)