 
 (defn get-page-width [data]
   (get data :pageWidth (:pageWidth defaults)))
+
+(defn get-scroll-threshold [data]
+  (get data :scrollThreshold (:scrollThreshold defaults)))
 
 (defn calculate-gap [component props]
   (let [prop-page-width (get-page-width props)

                 :bounces false
                 :decelerationRate 0.9
                 :horizontal true
                 :onScrollEndDrag (fn [event] (on-scroll-end event component))
                 :showsHorizontalScrollIndicator false
                 :ref (fn [c] (set! (.-scrollView component) c))
                 }


(def defaults {:gap 10
               :sneak 10
               :pageWidth (- (page-width) 40)
               :scrollThreshold 20})


(defn get-gap [data]
