UNPKG

react-native-material-elements

Version:

React native material elements is a sophisticated UI library crafted to enhance your React Native development workflow. Designed for simplicity and elegance, nex-ui provides a rich collection of components and utilities to effortlessly create polished mob

33 lines (30 loc) 743 B
import { StyleSheet } from 'react-native'; import { GenerateAppBarStyles } from './AppBar'; export const styles = StyleSheet.create({ appBarContainer: { width: '100%', paddingVertical: 6, paddingHorizontal: 8, display: 'flex', flexDirection: 'row', alignItems: 'center', }, appBarItemContainer: { padding: 4, }, }); export const generateAppBarStyles = ({ flex, display, alignItems, justifyContent, flexDirection, backgroundColor, }: GenerateAppBarStyles) => ({ ...(flex && { flex }), ...(display && { display }), ...(alignItems && { alignItems }), ...(justifyContent && { justifyContent }), ...(flexDirection && { flexDirection }), ...(backgroundColor && { backgroundColor }), });