@umituz/react-native-bottom-sheet 1.1.4 → 1.1.5

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": "@umituz/react-native-bottom-sheet",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Modern, performant bottom sheets for React Native with preset configurations, keyboard handling, and smooth animations",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./src/index.ts",
@@ -221,41 +221,12 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
221
221
  },
222
222
  }));
223
223
 
224
- // Don't compute config or callbacks until mounted to prevent early hook execution
224
+ // Don't render until mounted to prevent early hook execution
225
225
  // This ensures @gorhom/bottom-sheet's internal hooks don't run before Reanimated is ready
226
226
  if (!isMounted) {
227
227
  return null;
228
228
  }
229
229
 
230
- // Get configuration from preset or custom
231
- const config: BottomSheetConfig = useMemo(() => {
232
- if (customSnapPoints) {
233
- return BottomSheetUtils.createConfig({
234
- snapPoints: customSnapPoints,
235
- initialIndex,
236
- enableBackdrop,
237
- backdropAppearsOnIndex,
238
- backdropDisappearsOnIndex,
239
- keyboardBehavior,
240
- enableHandleIndicator,
241
- enablePanDownToClose,
242
- enableDynamicSizing,
243
- });
244
- }
245
- return BottomSheetUtils.getPreset(preset);
246
- }, [
247
- preset,
248
- customSnapPoints,
249
- initialIndex,
250
- enableBackdrop,
251
- backdropAppearsOnIndex,
252
- backdropDisappearsOnIndex,
253
- keyboardBehavior,
254
- enableHandleIndicator,
255
- enablePanDownToClose,
256
- enableDynamicSizing,
257
- ]);
258
-
259
230
  // Render backdrop component
260
231
  const renderBackdrop = useCallback(
261
232
  (props: BottomSheetBackdropProps) =>