We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f741626 commit ae06aa2Copy full SHA for ae06aa2
source/views/components/tabbar-icon.js
@@ -1,8 +1,14 @@
1
// @flow
2
-// eslint-disable react-native/no-inline-styles
3
import React from 'react'
+import {StyleSheet} from 'react-native'
4
import Icon from 'react-native-vector-icons/Ionicons'
5
6
+const styles = StyleSheet.create({
7
+ icon: {
8
+ fontSize: 30,
9
+ },
10
+})
11
+
12
export const TabBarIcon = (icon: string) => ({
13
tintColor,
14
focused,
@@ -11,6 +17,6 @@ export const TabBarIcon = (icon: string) => ({
17
focused: boolean,
18
}) =>
19
<Icon
- style={[{color: tintColor, fontSize: 30}]}
20
+ style={[styles.icon, {color: tintColor}]}
15
21
name={focused ? `ios-${icon}` : `ios-${icon}-outline`}
16
22
/>
0 commit comments