Releases: testshallpass/react-native-dropdownalert
Releases · testshallpass/react-native-dropdownalert
4.1.0
Changelog
FEATURES
- Added
onTapcallback function prop for whenDropdownAlerthas been tapped close. - Added the ability to pass a payload object with an image source property as parameter to
alertWithType#161. Example:
//...
const payload = { source: 'https://facebook.github.io/react-native/docs/assets/favicon.png' };
this.dropDownAlertRef.alertWithType('info', 'title', 'message', payload);
// Keep in mind, the image source property overrides any provided image source props.
//...4.0.2
4.0.1
4.0.0
I decided to refactor Dropdownalert to increase test coverage (+18.58%), readability and maintainability. I kept it working as expected with limited breaking changes.
I also want to thank all the contributors, feedback and support. I will help out on any open PRs that have conflicts.
Changelog
BREAKING CHANGES
safeAreaStylebecomescontentContainerStyle
FEATURES
useAnimationLockprop to prevent alerts colliding with one another during close or open animations.- CHANGE type is no longer validated in
alertWithTypeand so if "unknown" type is passed the default styles are used. (i.e. like using "custom" type). - height added to state for use with
startDeltaandendDeltato keep alert visible. - CancelButton component.
CHANGES
- type, title, and message are no longer state variables. A class instance object called alertData stores this info + payload, action and interval. alertData is returned in onClose or onCancel actions.
- use
closeActionto close alert. - render functions return props and alertData.
- title and message non-strings try to become strings. See:
getStringValue - props remove from README to it's own document with table of contents.
- label component renamed to TextView.
- Reduce timeout usage.
FIXES
- SafeAreaView and onLayoutEvent being called repetitively causing unnecessary state changes #173
3.11.0
- Task:
SafeAreaViewomit usage for earlier iOS versions (<11) #181 Thanks. @kirillpisarev
3.10.0
- Feature: Added the ability to pass data (aka payload) to
alertWithTypefunction. See example in: #177 and Thanks @rdewolff - Enhancement: Add
isInteractionboolean prop for use with animation config. Thanks @slorber - Enhancement:
useNativeDriverprop now defaults totrueas before v3.10.0 it only defaulted to true on iOS platform. Thanks @slorber - Fix: [Android] StatusBar backgroundColor change #169. Thanks @aqos156
3.9.2
- Fixed missing React and ReactNode in
index.d.tsThanks @xcarpentier
3.9.1
3.9.0
- Enhancement: Add typescript definitions #157 Thanks @xcarpentier
- Task: componentDidMount #160
- Feature: Add title and message text props #137