1
- import { Alert , StyleSheet , View } from "react-native" ;
1
+ import { Alert , ScrollView , StyleSheet , View } from "react-native" ;
2
2
import { router , useNavigation } from "expo-router" ;
3
3
import { useEffect , useState } from "react" ;
4
4
import { KeyInfo , useGnoNativeContext } from "@gnolang/gnonative" ;
@@ -11,6 +11,7 @@ import Text from "@gno/components/text";
11
11
import { useSearch } from "@gno/hooks/use-search" ;
12
12
import { useNotificationContext } from "@gno/provider/notification-provider" ;
13
13
import { onboarding } from "redux/features/signupSlice" ;
14
+ import AvatarPicker from "@gno/components/avatar/avatar-picker" ;
14
15
import { ProgressViewModal } from "@gno/components/view/progress" ;
15
16
16
17
export default function Page ( ) {
@@ -103,35 +104,40 @@ export default function Page() {
103
104
< >
104
105
< Layout . Container >
105
106
< Layout . Body >
106
- < >
107
- < AccountBalance activeAccount = { activeAccount } />
108
- < Text . Subheadline > Chain ID:</ Text . Subheadline >
109
- < Text . Body > { chainID } </ Text . Body >
110
- < Text . Subheadline > Remote:</ Text . Subheadline >
111
- < Text . Body > { remote } </ Text . Body >
112
- < Text . Subheadline > Followers:</ Text . Subheadline >
113
- < Text . Body > { followersCount . n_followers } </ Text . Body >
114
- < Text . Subheadline > Following:</ Text . Subheadline >
115
- < Text . Body > { followersCount . n_following } </ Text . Body >
116
- < View > </ View >
117
- </ >
118
- < Layout . Footer >
119
- < ProgressViewModal visible = { modalVisible } onRequestClose = { ( ) => setModalVisible ( false ) } />
120
- < Button . TouchableOpacity title = "Logs" onPress = { ( ) => setModalVisible ( true ) } variant = "primary" />
121
- < Button . TouchableOpacity title = "Onboard the current user" onPress = { onboard } variant = "primary" />
122
- < Button . TouchableOpacity
123
- title = "Register to the notification service"
124
- onPress = { onPressNotification }
125
- variant = "primary"
126
- />
127
- < Button . TouchableOpacity title = "Logout" onPress = { onPressLogout } style = { styles . logout } variant = "primary-red" />
128
- < Button . TouchableOpacity
129
- title = "Remove Account"
130
- onPress = { onRemoveAccount }
131
- style = { styles . logout }
132
- variant = "primary-red"
133
- />
134
- </ Layout . Footer >
107
+ < ScrollView >
108
+ < View style = { { paddingBottom : 20 } } >
109
+ < AvatarPicker />
110
+ </ View >
111
+ < >
112
+ < AccountBalance activeAccount = { activeAccount } />
113
+ < Text . Subheadline > Chain ID:</ Text . Subheadline >
114
+ < Text . Body > { chainID } </ Text . Body >
115
+ < Text . Subheadline > Remote:</ Text . Subheadline >
116
+ < Text . Body > { remote } </ Text . Body >
117
+ < Text . Subheadline > Followers:</ Text . Subheadline >
118
+ < Text . Body > { followersCount . n_followers } </ Text . Body >
119
+ < Text . Subheadline > Following:</ Text . Subheadline >
120
+ < Text . Body > { followersCount . n_following } </ Text . Body >
121
+ < View > </ View >
122
+ </ >
123
+ < Layout . Footer >
124
+ < ProgressViewModal visible = { modalVisible } onRequestClose = { ( ) => setModalVisible ( false ) } />
125
+ < Button . TouchableOpacity title = "Logs" onPress = { ( ) => setModalVisible ( true ) } variant = "primary" />
126
+ < Button . TouchableOpacity title = "Onboard the current user" onPress = { onboard } variant = "primary" />
127
+ < Button . TouchableOpacity
128
+ title = "Register to the notification service"
129
+ onPress = { onPressNotification }
130
+ variant = "primary"
131
+ />
132
+ < Button . TouchableOpacity title = "Logout" onPress = { onPressLogout } style = { styles . logout } variant = "primary-red" />
133
+ < Button . TouchableOpacity
134
+ title = "Remove Account"
135
+ onPress = { onRemoveAccount }
136
+ style = { styles . logout }
137
+ variant = "primary-red"
138
+ />
139
+ </ Layout . Footer >
140
+ </ ScrollView >
135
141
</ Layout . Body >
136
142
</ Layout . Container >
137
143
< LoadingModal visible = { loading } />
0 commit comments