@umituz/react-native-bottom-sheet 1.2.9 → 1.3.0

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.2.9",
3
+ "version": "1.3.0",
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",
@@ -127,6 +127,11 @@ export interface BottomSheetModalProps {
127
127
  * Callback when sheet is dismissed
128
128
  */
129
129
  onDismiss?: () => void;
130
+
131
+ /**
132
+ * Background color of the sheet
133
+ */
134
+ backgroundColor?: string;
130
135
  }
131
136
 
132
137
  /**
@@ -151,6 +156,7 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
151
156
  enableDynamicSizing = false,
152
157
  onChange,
153
158
  onDismiss,
159
+ backgroundColor,
154
160
  },
155
161
  ref
156
162
  ) => {
@@ -248,7 +254,7 @@ export const BottomSheetModal = forwardRef<BottomSheetModalRef, BottomSheetModal
248
254
  onDismiss={onDismiss}
249
255
  backgroundStyle={[
250
256
  styles.background,
251
- { backgroundColor: tokens.colors.surface },
257
+ { backgroundColor: backgroundColor || tokens.colors.surface },
252
258
  ]}
253
259
  handleIndicatorStyle={[
254
260
  styles.handleIndicator,