testshallpass/react-native-dropdownalert
testshallpass/react-native-dropdownalert has 1,874 GitHub stars and 250 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 01:49 UTC. Last push 2026-06-06.
An alert to notify users about an error or something else
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
Originalreact-native-dropdownalert

Table of contents
An alert to notify users about an error or something else. It can be dismissed by press, cancel, automatic, pan gesture or programmatic. It can be customized and/or you can build your own alert (BYOA) - see DropdownAlertProps on what's available.
Installation
yarn add react-native-dropdownalertnpm i react-native-dropdownalert --save
Usage
import the library
import DropdownAlert, {
DropdownAlertData,
DropdownAlertType,
} from 'react-native-dropdownalert';
create an alert promise function variable
let alert = (_data: DropdownAlertData) => new Promise<DropdownAlertData>(res => res);
add the component as the last component in the document tree so it overlaps other UI components and set alert prop with alert function
<DropdownAlert alert={func => (alert = func)} />
invoke alert
const alertData = await alert({
type: DropdownAlertType.Error,
title: 'Error',
message: 'Something went wrong.',
});
Support
| react minium version | react-native minium version | package version | reason |
|---|---|---|---|
| v16.8.0 | v0.61.0 | v5.0.0 | use react hooks |
| v16.0.0 | v0.50.0 | v3.2.0 | use SafeAreaView |
| v16.0.0-alpha.6 | v0.44.0 | v2.12.0 | use ViewPropTypes |
Using children prop
Option 1 pass child component(s) like so:
<DropdownAlert>{/* insert child component(s) */}</DropdownAlert>
Option 2 pass child component(s) like so:
<DropdownAlert children={/* insert child component(s) */} />
Either way DropdownAlert will render these instead of the pre-defined child components when alert is invoked. Check out the iOS and Android notifications in example project.
Caveats
- Modals can overlap `DropdownAlert`` if it is not inside the modal's document tree.
- It is important you place the
DropdownAlertbelow theStackNavigator.
Inspired by: RKDropdownAlert
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,741 starspublic-apis/public-apis
A collective list of free APIs
496,968 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
440,481 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,130 stars