File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React from "react"
22
33import {
44 Button ,
5+ ButtonRow ,
56 Column ,
67 Icon ,
78 type ScrollViewRef ,
@@ -17,18 +18,22 @@ export const LogScreen = () => {
1718 < Column grow >
1819 < Header >
1920 < Text > Logs</ Text >
20- < Button
21- icon = { Icon . ChevronDown }
22- onPress = { ( ) => {
23- scrollViewRef . current ?. scrollToEnd ( { animated : true } )
24- } }
25- />
26- < Button
27- icon = { Icon . ChevronUp }
28- onPress = { ( ) => {
29- scrollViewRef . current ?. scrollTo ( { y : 0 , animated : true } )
30- } }
31- />
21+ < ButtonRow >
22+ < Button
23+ icon = { Icon . ChevronDown }
24+ isRaised
25+ onPress = { ( ) => {
26+ scrollViewRef . current ?. scrollToEnd ( { animated : true } )
27+ } }
28+ />
29+ < Button
30+ icon = { Icon . ChevronUp }
31+ isRaised
32+ onPress = { ( ) => {
33+ scrollViewRef . current ?. scrollTo ( { y : 0 , animated : true } )
34+ } }
35+ />
36+ </ ButtonRow >
3237 </ Header >
3338 < Logs ref = { scrollViewRef } />
3439 </ Column >
You can’t perform that action at this time.
0 commit comments