UNPKG

react-native-tab-view

Version:
33 lines (32 loc) 696 B
"use strict"; import React from 'react'; import { Animated, StyleSheet } from 'react-native'; import { jsx as _jsx } from "react/jsx-runtime"; export const TabBarItemLabel = /*#__PURE__*/React.memo(({ color, label, style, icon }) => { if (!label) { return null; } return /*#__PURE__*/_jsx(Animated.Text, { style: [styles.label, icon ? { marginTop: 0 } : null, style, { color: color }], children: label }); }); TabBarItemLabel.displayName = 'TabBarItemLabel'; const styles = StyleSheet.create({ label: { margin: 4, fontSize: 14, fontWeight: '500', backgroundColor: 'transparent' } }); //# sourceMappingURL=TabBarItemLabel.js.map