@leonsilicon/react-native-wishlist 0.0.2 → 0.0.4

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.
@@ -217,8 +217,8 @@ void MGViewportCarerImpl::updateWindow() {
217
217
 
218
218
  std::vector<WishItem> itemsToRemove;
219
219
 
220
- // remove above
221
- while (true) {
220
+ // remove above — keep at least one item so window_ is never empty
221
+ while (window_.size() > 1) {
222
222
  WishItem item = window_.front();
223
223
  float bottom = item.offset + item.height;
224
224
  if (bottom <= topEdge) {
@@ -231,8 +231,8 @@ void MGViewportCarerImpl::updateWindow() {
231
231
  }
232
232
  }
233
233
 
234
- // remove below
235
- while (true) {
234
+ // remove below — keep at least one item so window_ is never empty
235
+ while (window_.size() > 1) {
236
236
  WishItem item = window_.back();
237
237
  if (item.offset >= bottomEdge) {
238
238
  window_.pop_back();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leonsilicon/react-native-wishlist",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "The fastest List component for React Native updated to work with Expo 55",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -14,6 +14,7 @@
14
14
  "ios",
15
15
  "cpp",
16
16
  "*.podspec",
17
+ "react-native.config.js",
17
18
  "!lib/typescript/example",
18
19
  "!ios/build",
19
20
  "!android/build",
@@ -0,0 +1,15 @@
1
+ module.exports = {
2
+ dependency: {
3
+ platforms: {
4
+ android: {
5
+ componentDescriptors: [
6
+ 'MGContentContainerComponentDescriptor',
7
+ 'MGTemplateContainerComponentDescriptor',
8
+ 'MGTemplateInterceptorComponentDescriptor',
9
+ 'MGWishlistComponentDescriptor',
10
+ ],
11
+ cmakeListsPath: '../android/CMakeLists.txt',
12
+ },
13
+ },
14
+ },
15
+ };