react-native-universal-bottom-sheet
v1.0.1
Published
A modern universal bottom sheet for React Native with glassmorphism design, blur effects, gradient borders, and adaptive theme support.
Downloads
187
Maintainers
Readme
react-native-universal-bottom-sheet
✨ A modern, universal bottom sheet for React Native with glassmorphism effects, blur, gradients, and automatic light/dark theme support.
Built on top of react-native-raw-bottom-sheet, this component provides a polished iOS glass-style experience while remaining fully compatible with Android.
✨ Features
- 🌈 Glassmorphism UI (Blur + Gradient)
- 🌗 Automatic Light / Dark Mode support
- 📱 iOS & Android compatible
- 🧩 Simple & flexible API
- 🎯 Ref-based control (open / close)
- ⚡ Smooth animations
- 🧼 Clean & customizable styles
📸 Preview
📦 Installation
npm install react-native-universal-bottom-sheetor
yarn add react-native-universal-bottom-sheetInstall peer dependencies
npm install react-native-raw-bottom-sheet react-native-linear-gradient @react-native-community/blurcd ios && pod install🚀 Usage
Basic Example
import React, { useRef } from "react";
import { View, Button, Text } from "react-native";
import UniversalBottomSheet from "react-native-universal-bottom-sheet";
export default function App() {
const sheetRef = useRef(null);
return (
<View style={{ flex: 1, justifyContent: "center" }}>
<Button title="Open Sheet" onPress={() => sheetRef.current?.open()} />
<UniversalBottomSheet ref={sheetRef}>
<Text>Hello from Universal Bottom Sheet 👋</Text>
</UniversalBottomSheet>
</View>
);
}🎨 Theme Support
The sheet automatically adapts to system theme. You can also force a mode manually.
<UniversalBottomSheet mode="dark">
<Text>Dark Mode Sheet</Text>
</UniversalBottomSheet>Supported values:
"light""dark"
🧠 Props
| Prop | Type | Default | Description | |
| ---------- | ----------------- | ------- | ----------------------------------------- | ---------------------------------------------- |
| children | React.ReactNode | — | Content to render inside the bottom sheet | |
| mode | "light" \ | "dark" | System | Force light or dark theme for the bottom sheet |
🎯 Ref Methods
| Method | Description |
| --------- | ----------------------- |
| open() | Opens the bottom sheet |
| close() | Closes the bottom sheet |
🛠 Built With
react-native-raw-bottom-sheet@react-native-community/blurreact-native-linear-gradient
🧪 Platform Behavior
| Platform | Background | | -------- | ---------------------------- | | iOS | Blur + Gradient + Border | | Android | Solid background (optimized) |
📄 License
MIT © CompileX
⭐ If you like this package, don’t forget to star the repo!
