Skip to content

Commit 3b115a1

Browse files
fix: remove size prop from createMaterialBottomTabNavigator example on tabBarIcon object
1 parent 1719809 commit 3b115a1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

static/examples/5.x/material-bottom-tab-example.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ function MyTabs() {
4343
component={Feed}
4444
options={{
4545
tabBarLabel: 'Home',
46-
tabBarIcon: ({ color, size }) => (
47-
<MaterialCommunityIcons name="home" color={color} size={size} />
46+
tabBarIcon: ({ color }) => (
47+
<MaterialCommunityIcons name="home" color={color} size={26} />
4848
),
4949
}}
5050
/>
@@ -53,8 +53,8 @@ function MyTabs() {
5353
component={Notifications}
5454
options={{
5555
tabBarLabel: 'Updates',
56-
tabBarIcon: ({ color, size }) => (
57-
<MaterialCommunityIcons name="bell" color={color} size={size} />
56+
tabBarIcon: ({ color }) => (
57+
<MaterialCommunityIcons name="bell" color={color} size={26} />
5858
),
5959
}}
6060
/>
@@ -63,8 +63,8 @@ function MyTabs() {
6363
component={Profile}
6464
options={{
6565
tabBarLabel: 'Profile',
66-
tabBarIcon: ({ color, size }) => (
67-
<MaterialCommunityIcons name="account" color={color} size={size} />
66+
tabBarIcon: ({ color }) => (
67+
<MaterialCommunityIcons name="account" color={color} size={26} />
6868
),
6969
}}
7070
/>

versioned_docs/version-5.x/material-bottom-tab-navigator.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,8 @@ function MyTabs() {
206206
component={Feed}
207207
options={{
208208
tabBarLabel: 'Home',
209-
tabBarIcon: ({ color, size }) => (
210-
<MaterialCommunityIcons name="home" color={color} size={size} />
209+
tabBarIcon: ({ color }) => (
210+
<MaterialCommunityIcons name="home" color={color} size={26} />
211211
),
212212
}}
213213
/>
@@ -216,8 +216,8 @@ function MyTabs() {
216216
component={Notifications}
217217
options={{
218218
tabBarLabel: 'Updates',
219-
tabBarIcon: ({ color, size }) => (
220-
<MaterialCommunityIcons name="bell" color={color} size={size} />
219+
tabBarIcon: ({ color }) => (
220+
<MaterialCommunityIcons name="bell" color={color} size={26} />
221221
),
222222
}}
223223
/>
@@ -226,8 +226,8 @@ function MyTabs() {
226226
component={Profile}
227227
options={{
228228
tabBarLabel: 'Profile',
229-
tabBarIcon: ({ color, size }) => (
230-
<MaterialCommunityIcons name="account" color={color} size={size} />
229+
tabBarIcon: ({ color }) => (
230+
<MaterialCommunityIcons name="account" color={color} size={26} />
231231
),
232232
}}
233233
/>

0 commit comments

Comments
 (0)