rn-single-multi-deletable-select
Version:
A react native reusable component with 3 options: single select, multi select and deletable items with option to show image and text or just text.
18 lines (15 loc) • 377 B
text/typescript
import { StyleSheet } from 'react-native';
export const createStyle = (size: number, isVertical: boolean) => {
return StyleSheet.create({
container: {
...(isVertical
? {
height: size,
width: '100%',
}
: { width: size, height: '100%' }),
justifyContent: 'center',
alignItems: 'center',
},
});
};