merge develop
This commit is contained in:
commit
3a3a39b71d
|
@ -133,8 +133,8 @@ dependencies {
|
||||||
compile project(':react-native-camera')
|
compile project(':react-native-camera')
|
||||||
compile project(':react-native-status')
|
compile project(':react-native-status')
|
||||||
compile project(':react-native-orientation')
|
compile project(':react-native-orientation')
|
||||||
compile(name:'statusgo-android-16', ext:'aar')
|
//compile(name:'statusgo-android-16', ext:'aar')
|
||||||
//compile(group: 'status-im', name: 'status-go', version: '0.1.0-201606231357-85abe1', ext: 'aar')
|
compile(group: 'status-im', name: 'status-go', version: '0.1.0-201606301634-5d7b29', ext: 'aar')
|
||||||
|
|
||||||
compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
|
compile fileTree(dir: "node_modules/realm/android/libs", include: ["*.jar"])
|
||||||
}
|
}
|
||||||
|
|
|
@ -29,10 +29,10 @@
|
||||||
(fn [{:keys [current-chat-id] :as db} _]
|
(fn [{:keys [current-chat-id] :as db} _]
|
||||||
(let [suggestions? (seq (get-in db [:command-suggestions current-chat-id]))
|
(let [suggestions? (seq (get-in db [:command-suggestions current-chat-id]))
|
||||||
current (get-in db [:animations :command-suggestions-height])
|
current (get-in db [:animations :command-suggestions-height])
|
||||||
height (if suggestions? middle-height 30)
|
height (if suggestions? middle-height input-height)
|
||||||
changed? (if (and suggestions?
|
changed? (if (and suggestions?
|
||||||
(not (nil? current))
|
(not (nil? current))
|
||||||
(not= 30 current))
|
(not= input-height current))
|
||||||
identity inc)]
|
identity inc)]
|
||||||
(-> db
|
(-> db
|
||||||
(update :animations assoc :command-suggestions-height height)
|
(update :animations assoc :command-suggestions-height height)
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
type (get-in db path)]
|
type (get-in db path)]
|
||||||
(if (= :response type)
|
(if (= :response type)
|
||||||
minimum-suggestion-height
|
minimum-suggestion-height
|
||||||
30)))
|
input-height)))
|
||||||
|
|
||||||
(register-handler :animate-show-response
|
(register-handler :animate-show-response
|
||||||
[(after #(dispatch [:command-edit-mode]))]
|
[(after #(dispatch [:command-edit-mode]))]
|
||||||
|
@ -97,7 +97,7 @@
|
||||||
(let [suggestions (get-in db [:command-suggestions current-chat-id])]
|
(let [suggestions (get-in db [:command-suggestions current-chat-id])]
|
||||||
(if (seq suggestions)
|
(if (seq suggestions)
|
||||||
minimum-command-suggestions-height
|
minimum-command-suggestions-height
|
||||||
0.1)))
|
input-height)))
|
||||||
|
|
||||||
(register-handler :fix-commands-suggestions-height
|
(register-handler :fix-commands-suggestions-height
|
||||||
(fix-height :command-suggestions-height
|
(fix-height :command-suggestions-height
|
||||||
|
|
|
@ -115,14 +115,12 @@
|
||||||
on-update
|
on-update
|
||||||
:reagent-render
|
:reagent-render
|
||||||
(fn [h & elements]
|
(fn [h & elements]
|
||||||
@changed
|
@to-response-height @changed
|
||||||
(into [animated-view {:style (st/container h)}] elements))})))
|
(into [animated-view {:style (st/container h)}] elements))})))
|
||||||
|
|
||||||
(defn suggestion-container []
|
(defn suggestion-container []
|
||||||
(let [h (anim/create-value 0.1)
|
(let [h (anim/create-value c/input-height)]
|
||||||
command? (subscribe [:command?])]
|
|
||||||
(when-not @command?
|
|
||||||
[container h
|
[container h
|
||||||
[header h]
|
[header h]
|
||||||
[suggestions-view]
|
[suggestions-view]
|
||||||
[view {:height c/input-height}]])))
|
[view {:height c/input-height}]]))
|
||||||
|
|
Loading…
Reference in New Issue