@@ -29,7 +29,7 @@ export default function Welcome() {
2929 < Text >
3030 { flagKey } : { `${ flagValue } ` }
3131 </ Text >
32- < ScrollView style = { { flexGrow : 0.2 , backgroundColor : 'black' , maxHeight : 200 } } >
32+ < ScrollView style = { { flexGrow : 0.5 , backgroundColor : 'black' , maxHeight : 200 } } >
3333 < Text style = { { color : 'orange' } } > Logging: { JSON . stringify ( context , null , 2 ) } </ Text >
3434 </ ScrollView >
3535 < TextInput
@@ -50,21 +50,23 @@ export default function Welcome() {
5050 value = { flagKey }
5151 testID = "flagKey"
5252 />
53- < TouchableOpacity style = { styles . buttonContainer } onPress = { ( ) => setConnectionMode ( 'offline' ) } >
54- < Text style = { styles . buttonText } > Set offline</ Text >
55- </ TouchableOpacity >
56- < TouchableOpacity
57- style = { styles . buttonContainer }
58- onPress = { ( ) => setConnectionMode ( 'streaming' ) }
59- >
60- < Text style = { styles . buttonText } > Set streaming</ Text >
61- </ TouchableOpacity >
62- < TouchableOpacity
63- style = { styles . buttonContainer }
64- onPress = { ( ) => setConnectionMode ( 'polling' ) }
65- >
66- < Text style = { styles . buttonText } > Set polling</ Text >
67- </ TouchableOpacity >
53+ < View style = { styles . connectionModeContainer } >
54+ < TouchableOpacity style = { styles . buttonContainer } onPress = { ( ) => setConnectionMode ( 'offline' ) } >
55+ < Text style = { styles . buttonText } > Set offline</ Text >
56+ </ TouchableOpacity >
57+ < TouchableOpacity
58+ style = { styles . buttonContainer }
59+ onPress = { ( ) => setConnectionMode ( 'streaming' ) }
60+ >
61+ < Text style = { styles . buttonText } > Set streaming</ Text >
62+ </ TouchableOpacity >
63+ < TouchableOpacity
64+ style = { styles . buttonContainer }
65+ onPress = { ( ) => setConnectionMode ( 'polling' ) }
66+ >
67+ < Text style = { styles . buttonText } > Set polling</ Text >
68+ </ TouchableOpacity >
69+ </ View >
6870 </ View >
6971 ) ;
7072}
@@ -75,6 +77,12 @@ const styles = StyleSheet.create({
7577 alignItems : 'center' ,
7678 justifyContent : 'center' ,
7779 } ,
80+ connectionModeContainer : {
81+ display : 'flex' ,
82+ flexDirection : 'row' ,
83+ flexWrap : 'wrap' ,
84+ justifyContent : 'space-around' ,
85+ } ,
7886 input : {
7987 height : 40 ,
8088 margin : 12 ,
0 commit comments