@janiscommerce/ui-native 1.26.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5,7 +5,7 @@ export interface Block {
5
5
  hasSeparator?: boolean;
6
6
  }
7
7
  export interface MainCardListProps extends ViewProps {
8
- displayId: string;
8
+ displayId?: string;
9
9
  children?: ReactNode;
10
10
  blocks?: Block[];
11
11
  isSelected?: boolean;
@@ -4,9 +4,6 @@ import React from 'react';
4
4
  import { StyleSheet, View } from 'react-native';
5
5
  import { palette } from '../../../theme/palette';
6
6
  const MainCardList = ({ displayId, children, blocks, isSelected, style, ...props }) => {
7
- if (!displayId || typeof displayId !== 'string') {
8
- return null;
9
- }
10
7
  const styles = StyleSheet.create({
11
8
  innerContainer: {},
12
9
  blockContainer: {
@@ -51,7 +48,7 @@ const MainCardList = ({ displayId, children, blocks, isSelected, style, ...props
51
48
  ].filter(Boolean);
52
49
  return (<BaseCardList isSelected={isSelected} style={style && style} {...props}>
53
50
  <View>
54
- <Text style={activeDisplayIdStyles}>{displayId}</Text>
51
+ {displayId && <Text style={activeDisplayIdStyles}>{displayId}</Text>}
55
52
  {children && <View style={styles.childrenContainer}>{children}</View>}
56
53
  <View>{renderBlocks()}</View>
57
54
  </View>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@janiscommerce/ui-native",
3
- "version": "1.26.0",
3
+ "version": "1.26.1",
4
4
  "description": "components library for Janis app",
5
5
  "main": "dist/index.js",
6
6
  "typings": "dist/index.d.ts",