프로젝트
GitHub에서 보기
paufau/react-native-multiple-modals
소개
Native implementation with the ability to display multiple Modals
웹 및 앱 개발What you can do
- 🚀 Shows multiple instances at the same time
- 💯 Displays on top of default modal
- 🆗 Supports gesture handler out of the box
- 🛠️ Displays above bottom tabs navigation
측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- +1
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalreact-native-multiple-modals
Native layering for React Native modals, sheets and overlays, including native Modal and bottom tabs

✨ Features
- 🚀 Shows multiple instances at the same time
- 💯 Displays on top of default modal
- 🆗 Supports gesture handler out of the box
- 🛠️ Displays above bottom tabs navigation
- 📱 Adjusts content when rotated
- 💥 Enhanced status bar configuration
- ✅ Built with Accessibility support in mind (WCAG)
Documentation: https://paufau.github.io/react-native-multiple-modals/
Installation
npm i react-native-multiple-modals
yarn add react-native-multiple-modals
iOS
pod install --project-directory=ios
Usage
import { ModalView } from "react-native-multiple-modals";
const YourComponent = () => {
const [isVisible, setVisibility] = useState(false);
return (
<View>
<Button text="Open modal" onPress={() => setVisibility(true)} />
{isVisible && (
<ModalView
animationType="fade"
statusBar={{ translucent: true, barStyle: "dark-content" }}
backdropColor="rgba(0,0,0,0.5)"
contentContainerStyle={{
justifyContent: "center",
alignItems: "center",
}}
onRequestDismiss={() => setVisibility(false)}
>
<YourContentView />
</ModalView>
)}
</View>
);
};
More examples: example/demo-components/src/modals
Comparison
| Native or JS | Multiple at once | Accessibility | |
|---|---|---|---|
| react-native-multiple-modals | Native | ✅ | ✅ |
Modal (React Native) |
Native | ❌ on iOS | ✅ |
| react-native-modal | Native | ❌ | ✅ |
| react-native-modalfy | JS | ✅ | ❌ |
| @react-navigation/native-stack | Native | ✅ | ❌ |
| @gorhom/portal, react-native-portalize | JS | ✅ | ❌ |
Contribution
FOUND A BUG? HELP THE PROJECT AND REPORT IT!
If you notice any bugs or anything working differently compared to React Native, feel free to open an issue. It’ll really help improve the project 🙏.
Still missing something?
I would love if you would let me know what you are missing in the library. Together we can make it a community standard!
Sponsor & Support
If you found the library useful, you can support me here:
관련 프로젝트 살펴보기
불러오는 중…