@namiml/expo-sdk 3.4.4-dev.202606300237 → 3.4.4-dev.202606302245

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@namiml/expo-sdk",
3
- "version": "3.4.4-dev.202606300237",
3
+ "version": "3.4.4-dev.202606302245",
4
4
  "type": "module",
5
5
  "description": "Nami Expo SDK — paywall and subscription management for Expo apps",
6
6
  "main": "./dist/index.cjs",
@@ -29,8 +29,8 @@
29
29
  "prepublishOnly": "yarn clean && yarn build:prod"
30
30
  },
31
31
  "dependencies": {
32
- "@namiml/expo-nami-iap": "3.4.4-dev.202606300237",
33
- "@namiml/sdk-core": "3.4.4-dev.202606300237",
32
+ "@namiml/expo-nami-iap": "3.4.4-dev.202606302245",
33
+ "@namiml/sdk-core": "3.4.4-dev.202606302245",
34
34
  "react-native-qrcode-svg": "^6.3.21",
35
35
  "react-native-safe-area-context": "^5.6.0",
36
36
  "react-native-svg": "^15.15.4"
@@ -138,7 +138,9 @@ export function getRepeatingListBlocks(ctx: any, component: any): TComponent[][]
138
138
  const headerTemplate: TComponent | undefined = component.groupHeaderTemplate;
139
139
 
140
140
  if (!groupBy || !headerTemplate) {
141
- return filteredBlocks.map(renderItem);
141
+ const cappedBlocks =
142
+ component.max != null ? filteredBlocks.slice(0, component.max) : filteredBlocks;
143
+ return cappedBlocks.map(renderItem);
142
144
  }
143
145
 
144
146
  const sectionOrder: string[] = [];
@@ -159,7 +161,11 @@ export function getRepeatingListBlocks(ctx: any, component: any): TComponent[][]
159
161
  const header = interpolate(headerTemplate, interpolate({ group }, { group })) as any;
160
162
  header.__namiGroupHeader = true;
161
163
  result.push([header]);
162
- for (const block of sections.get(key)!) {
164
+ const groupItems =
165
+ component.groupMax != null
166
+ ? sections.get(key)!.slice(0, component.groupMax)
167
+ : sections.get(key)!;
168
+ for (const block of groupItems) {
163
169
  result.push(renderItem(block));
164
170
  }
165
171
  }