@one-am/react-native-simple-image-slider 0.9.0 → 0.9.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.
@@ -175,7 +175,7 @@ const BaseSimpleImageSlider = /*#__PURE__*/(0, _react.forwardRef)(function BaseS
175
175
  estimatedItemSize: estimatedItemSize,
176
176
  estimatedListSize: {
177
177
  width: estimatedItemSize,
178
- height: imageHeight ?? estimatedItemSize * imageAspectRatio
178
+ height: imageHeight ?? estimatedItemSize / imageAspectRatio
179
179
  }
180
180
  });
181
181
  return /*#__PURE__*/_react.default.createElement(StyledContainer, {
@@ -166,7 +166,7 @@ const BaseSimpleImageSlider = /*#__PURE__*/forwardRef(function BaseSimpleImageSl
166
166
  estimatedItemSize: estimatedItemSize,
167
167
  estimatedListSize: {
168
168
  width: estimatedItemSize,
169
- height: imageHeight ?? estimatedItemSize * imageAspectRatio
169
+ height: imageHeight ?? estimatedItemSize / imageAspectRatio
170
170
  }
171
171
  });
172
172
  return /*#__PURE__*/React.createElement(StyledContainer, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-am/react-native-simple-image-slider",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "A simple and performant image slider made with FlashList. Includes a full screen gallery component with gesture support.",
5
5
  "main": "lib/commonjs/index",
6
6
  "module": "lib/module/index",
@@ -303,7 +303,7 @@ const BaseSimpleImageSlider = forwardRef<
303
303
  estimatedItemSize={estimatedItemSize}
304
304
  estimatedListSize={{
305
305
  width: estimatedItemSize,
306
- height: imageHeight ?? estimatedItemSize * imageAspectRatio,
306
+ height: imageHeight ?? estimatedItemSize / imageAspectRatio,
307
307
  }}
308
308
  />
309
309
  );