项目作者: WrathChaos

项目描述 :
Awesome styled, fully customizable alert modalize for React Native.
高级语言: JavaScript
项目地址: git://github.com/WrathChaos/react-native-alert-modalize.git
创建时间: 2019-12-01T17:59:09Z
项目社区:https://github.com/WrathChaos/react-native-alert-modalize

开源协议:MIT License

下载


React Native Alert Modalzie

Awesome styled, fully customizable alert modalize for React Native.

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


React Native Alert Modalize
React Native Alert Modalize

Installation

Add the dependency:

  1. npm i react-native-alert-modalize

Peer Dependencies

IMPORTANT! You need install them
  1. "react-native-modalize": ">= 1.2.3",
  2. "react-native-gesture-handler": ">= 1.5.2",
  3. "react-native-material-ripple": ">= 0.9.1"

Usage

Import

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

Usage

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

Open Modal

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

Close Modal

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

Configuration - Props

Property Type Default Description
title string title change the title
description string description change the description
buttonText string button text change the button text
titleStyle style default style set your own style for title text
descStyle style default style set your own style for description text
buttonTextStyle style default style set your own style for button text
imageSource source source set your own image source rather than beautiful Razor :)
imageBackgroundSource source source set your own image source rather Fortnite’s orange background :)
titleTextColor color white change the title’s text color
descTextColor color white change the description’s text color
buttonTextColor color white change the button’s text color
titleFontFamily Font Family default change the title’s font family
descFontFamily Font Family default change the description’s font family
buttonFontFamily Font Family default change 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.