@@ -8,10 +8,10 @@ import { VStack, Avatar } from "@react-native-material/core";
8
8
import Icon from " @expo/vector-icons/MaterialCommunityIcons" ;
9
9
10
10
const App = () => (
11
- < VStack flex justify = " center" align = " center " spacing= {4 }>
11
+ < VStack fill center spacing= {4 }>
12
12
< Avatar label= " Kent Dodds" autoColor / >
13
13
< Avatar image= {{ uri: " https://mui.com/static/images/avatar/1.jpg" }} / >
14
- < Avatar icon= {( props ) => < Icon name= " account" {... props} / > } / >
14
+ < Avatar icon= {props => < Icon name= " account" {... props} / > } / >
15
15
< / VStack>
16
16
);
17
17
@@ -34,7 +34,7 @@ import { VStack, Avatar } from "@react-native-material/core";
34
34
import Icon from " @expo/vector-icons/MaterialCommunityIcons" ;
35
35
36
36
const App = () => (
37
- < VStack flex justify = " center" align = " center " spacing= {4 }>
37
+ < VStack fill center spacing= {4 }>
38
38
< Avatar label= " Kent Dodds" / >
39
39
< Avatar label= " UN" initials= {false } / >
40
40
< Avatar label= " Jed Watson" autoColor / >
@@ -53,7 +53,7 @@ import { Image } from "react-native";
53
53
import { VStack , Avatar } from " @react-native-material/core" ;
54
54
55
55
const App = () => (
56
- < VStack flex justify = " center" align = " center " spacing= {4 }>
56
+ < VStack fill center spacing= {4 }>
57
57
< Avatar image= {{ uri: " https://mui.com/static/images/avatar/1.jpg" }} / >
58
58
< Avatar
59
59
image= {
@@ -84,15 +84,15 @@ import { VStack, Avatar } from "@react-native-material/core";
84
84
import Icon from " @expo/vector-icons/MaterialCommunityIcons" ;
85
85
86
86
const App = () => (
87
- < VStack flex justify = " center" align = " center " spacing= {4 }>
88
- < Avatar icon= {( props ) => < Icon name= " account" {... props} / > } / >
87
+ < VStack fill center spacing= {4 }>
88
+ < Avatar icon= {props => < Icon name= " account" {... props} / > } / >
89
89
< Avatar
90
- icon= {( props ) => < Icon name= " account" {... props} / > }
90
+ icon= {props => < Icon name= " account" {... props} / > }
91
91
label= " Jed Watson"
92
92
autoColor
93
93
/ >
94
94
< Avatar
95
- icon= {( props ) => < Icon name= " calendar" {... props} / > }
95
+ icon= {props => < Icon name= " calendar" {... props} / > }
96
96
label= " Tim Neutkens"
97
97
autoColor
98
98
/ >
@@ -109,7 +109,7 @@ import React from "react";
109
109
import { VStack , Avatar } from " @react-native-material/core" ;
110
110
111
111
const App = () => (
112
- < VStack flex justify = " center" align = " center " spacing= {4 }>
112
+ < VStack fill center spacing= {4 }>
113
113
< Avatar label= " Jed Watson" size= {32 } / >
114
114
< Avatar label= " Jed Watson" / >
115
115
< Avatar label= " Jed Watson" size= {72 } / >
@@ -127,19 +127,19 @@ import { VStack, Avatar } from "@react-native-material/core";
127
127
import Icon from " @expo/vector-icons/MaterialCommunityIcons" ;
128
128
129
129
const App = () => (
130
- < VStack flex justify = " center" align = " center " spacing= {4 }>
130
+ < VStack fill center spacing= {4 }>
131
131
< Avatar label= " Kent Dodds" / >
132
132
< Avatar
133
- icon= {( props ) => < Icon name= " account" {... props} / > }
133
+ icon= {props => < Icon name= " account" {... props} / > }
134
134
color= " primary"
135
135
/ >
136
136
< Avatar
137
- icon= {( props ) => < Icon name= " account" {... props} / > }
137
+ icon= {props => < Icon name= " account" {... props} / > }
138
138
color= " primary"
139
139
tintColor= " error"
140
140
/ >
141
141
< Avatar
142
- icon= {( props ) => < Icon name= " account" {... props} / > }
142
+ icon= {props => < Icon name= " account" {... props} / > }
143
143
color= " orange"
144
144
tintColor= " white"
145
145
/ >
@@ -157,15 +157,15 @@ import { VStack, Avatar } from "@react-native-material/core";
157
157
import Icon from " @expo/vector-icons/MaterialCommunityIcons" ;
158
158
159
159
const App = () => (
160
- < VStack flex justify = " center" align = " center " spacing= {4 }>
160
+ < VStack fill center spacing= {4 }>
161
161
< Avatar label= " Jed Watson" / >
162
162
< Avatar
163
163
label= " Jed Watson"
164
- icon= {( props ) => < Icon name= " account" {... props} / > }
164
+ icon= {props => < Icon name= " account" {... props} / > }
165
165
/ >
166
166
< Avatar
167
167
label= " Jed Watson"
168
- icon= {( props ) => < Icon name= " account" {... props} / > }
168
+ icon= {props => < Icon name= " account" {... props} / > }
169
169
image= {{ uri: " https://mui.com/static/images/avatar/1.jpg" }}
170
170
/ >
171
171
< / VStack>
0 commit comments