react-native-tab-view
Version:
Tab view component for React Native
33 lines (32 loc) • 696 B
JavaScript
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
;