0.0.6 • Published 6 years ago

react-native-alert-modalize v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Awesome styled, fully customizable alert modalize for React Native.

npm version npm Platform - Android and iOS License: MIT styled with prettier

Early Stage Example Photos

Installation

Add the dependency:

npm i react-native-alert-modalize

Peer Dependencies

IMPORTANT! You need install them
"react": ">= 16.x.x",
"react-native": ">= 0.55.x",
"react-native-modalize": ">= 1.2.3",
"react-native-gesture-handler": ">= 1.5.2",
"react-native-material-ripple": ">= 0.9.1"

Usage

Import

import AlertModalize from "react-native-alert-modalize";

Usage

<AlertModalize ref={ref => (alertModal = ref)} />

Open Modal

onPress={() => alertModal.openModal()}

Close Modal

onPress={() => alertModal.closeModal()}

Configuration - Props

  descFontFamily,
  titleFontFamily,
  buttonFontFamily,
PropertyTypeDefaultDescription
titlestringtitlechange the title
descriptionstringdescriptionchange the description
buttonTextstringbutton textchange the button text
titleStylestyledefault styleset your own style for title text
descStylestyledefault styleset your own style for description text
buttonTextStylestyledefault styleset your own style for button text
imageSourcesourcesourceset your own image source rather than beautiful Razor :)
imageBackgroundSourcesourcesourceset your own image source rather Fortnite's orange background :)
titleTextColorcolorwhitechange the title's text color
descTextColorcolorwhitechange the description's text color
buttonTextColorcolorwhitechange the button's text color
titleFontFamilyFont Familydefaultchange the title's font family
descFontFamilyFont Familydefaultchange the description's font family
buttonFontFamilyFont Familydefaultchange the button's text font family

Future Plans

  • LICENSE
  • Battle Test

Author

FreakyCoder, kurayogun@gmail.com

License

React Native Alert Modalzie is available under the MIT license. See the LICENSE file for more info.