All Projects → rnkit → Rnkit Alert View

rnkit / Rnkit Alert View

Licence: mit
React Native Alert View component for iOS + Android

Projects that are alternatives of or similar to Rnkit Alert View

Tyalertcontroller
Powerful, Easy to use alert view or popup view on controller and window, support blur effects,custom view and animation,for objective-c,support iphone, ipad
Stars: ✭ 1,290 (+5275%)
Mutual labels:  alertview
ZbxWallboard
Wallboard with active triggers/problems of Zabbix Monitoring
Stars: ✭ 17 (-29.17%)
Mutual labels:  alertview
Spalertcontroller
提醒对话框,风格和微信原生几乎零误差。简书地址:
Stars: ✭ 395 (+1545.83%)
Mutual labels:  alertview
Kcustomalert
Simple and easy alerts to use instead of default AlertController. Separate Xib is provided to customize as pr your need. Callbacks are easily handled by using Closures.
Stars: ✭ 128 (+433.33%)
Mutual labels:  alertview
TezAlertView
Custom singleton alertView with block completion.
Stars: ✭ 17 (-29.17%)
Mutual labels:  alertview
Malert
Custom alert View to iOS applications
Stars: ✭ 328 (+1266.67%)
Mutual labels:  alertview
Hdalertview
A similar system UIAlertView
Stars: ✭ 61 (+154.17%)
Mutual labels:  alertview
Fftoast
A very powerful iOS message notifications and AlertView extensions. It can be easily realized from the top of the screen, the bottom of the screen and the middle of the screen pops up a notification. You can easily customize the pop-up View.
Stars: ✭ 649 (+2604.17%)
Mutual labels:  alertview
LGApplications
个人小demo集合:①ActionSheet; ②PickerView; ③ScrollView嵌套; ④渐变文字Label; ⑤tableView实现单选;
Stars: ✭ 36 (+50%)
Mutual labels:  alertview
Popupdialog
A simple, customizable popup dialog for iOS written in Swift. Replaces UIAlertController alert style.
Stars: ✭ 3,709 (+15354.17%)
Mutual labels:  alertview
Bpstatusbaralert
BPStatusBarAlert is a library that allows you to easily make text-based alert that appear on the status bar and below navigation bar.
Stars: ✭ 129 (+437.5%)
Mutual labels:  alertview
AlertKit
🚨 SwiftUI alerts (and action sheets) done right
Stars: ✭ 60 (+150%)
Mutual labels:  alertview
Sclalertview
Beautiful animated Alert View. Written in Objective-C
Stars: ✭ 3,426 (+14175%)
Mutual labels:  alertview
Customalertviewdialogue
Custom AlertView Dialogue is the world's most advanced alert view library. Custom AlertView Dialogue includes simple message popups, confirmation alerts, selector popups, action sheet bottom menus, and input/feedback contact forms.
Stars: ✭ 100 (+316.67%)
Mutual labels:  alertview
Cfnotify
A customizable framework to create draggable views
Stars: ✭ 490 (+1941.67%)
Mutual labels:  alertview
Xfdialogbuilder
A configable dialog for IOS. Developer can custom mask layer,window size,UI theme,text content,font,layout content,push and pop Animation.
Stars: ✭ 64 (+166.67%)
Mutual labels:  alertview
BalloonPopup
Forget Android Toast! BalloonPopup displays a round or squared popup and attaches it to a View, like a callout. Uses the Builder pattern for maximum ease. The popup can automatically hide and can persist when the value is updated.
Stars: ✭ 32 (+33.33%)
Mutual labels:  alertview
Alertonboarding
A simple and attractive AlertView to onboard your users in your amazing world.
Stars: ✭ 766 (+3091.67%)
Mutual labels:  alertview
Alerttransition
AlertTransition is a extensible library for making view controller transitions, especially for alert transitions.
Stars: ✭ 565 (+2254.17%)
Mutual labels:  alertview
Fwpopupview
弹窗控件:支持AlertView、Sheet、自定义视图的PopupView。AlertView中可以嵌套自定义视图,各组件的显示隐藏可配置;Sheet仿微信样式;同时提供自定义弹出。更多配置请参考”可设置参数“,提供OC使用Demo。
Stars: ✭ 361 (+1404.17%)
Mutual labels:  alertview

npm react-native MIT bitHound Score Downloads

The best AlertView for React Native.

Support me with a Follow

Getting Started

First, cd to your RN project directory, and install RNMK through rnpm . If you don't have rnpm, you can install RNMK from npm with the command npm i -S rnkit-alert-view and link it manually (see below).

iOS

  • ####React Native < 0.29 (Using rnpm)

    rnpm install rnkit-alert-view

  • ####React Native >= 0.29 $npm install -S rnkit-alert-view

    $react-native link rnkit-alert-view

Manually

  1. Add node_modules/rnkit-alert-view/ios/RNKitAlertView.xcodeproj to your xcode project, usually under the Libraries group
  2. Add libRNKitAlertView.a (from Products under RNKitAlertView.xcodeproj) to build target's Linked Frameworks and Libraries list

Android

  • ####React Native < 0.29 (Using rnpm)

    rnpm install rnkit-alert-view

  • ####React Native >= 0.29 $npm install -S rnkit-alert-view

    $react-native link rnkit-alert-view

Manually

  1. JDK 7+ is required
  2. Add the following snippet to your android/settings.gradle:
include ':rnkit-alert-view'
project(':rnkit-alert-view').projectDir = new File(rootProject.projectDir, '../node_modules/rnkit-alert-view/android/app')
  1. Declare the dependency in your android/app/build.gradle
dependencies {
    ...
    compile project(':rnkit-alert-view')
}
  1. Import import io.rnkit.alertview.AlertViewPackage; and register it in your MainActivity (or equivalent, RN >= 0.32 MainApplication.java):
@Override
protected List<ReactPackage> getPackages() {
    return Arrays.asList(
            new MainReactPackage(),
            new AlertViewPackage()
    );
}

Finally, you're good to go, feel free to require rnkit-alert-view in your JS files.

Have fun! 🤘

Basic Usage

Import library

import Alert from 'rnkit-alert-view';

Code

Alert.alert(
      'Alert Title',
      'alertMessage',
      [
        {text: 'Cancel', onPress: () => console.log('Cancel Pressed!'), style: 'cancel',},
        {text: 'Ok', onPress: () => console.log('OK Pressed!')},
        {text: 'Destructive', onPress: () => console.log('Destructive Pressed!'), style: 'destructive',},
      ],
    );
Alert.alert(
      'Alert Title',
      'alertMessage',
      [
        {text: 'Cancel', onPress: () => console.log('Cancel Pressed!'), style: 'cancel'},
        {text: 'Ok', onPress: (text) => console.log('Ok Pressed!' + text)},
      ],
      'plain-text',
      '',
      1
    );

Params

Key Type Default Description
title string ''
message string ''
buttons array (ButtonsArray)
type string (AlertType) 'default'
placeholder string ''
doneButtonKey number 0
  • ButtonsArray
type ButtonsArray = Array<{
  text?: string,
  onPress?: ?Function,
  style?: AlertButtonStyle,
}>;
  • AlertType
type AlertType = $Enum<{
  'default': string,
  'plain-text': string
}>;
  • AlertButtonStyle
type AlertButtonStyle = $Enum<{
  'default': string,
  'cancel': string,
  'destructive': string,
}>;

Contribution

Thanks

@saiwu-bigkoo - Android-AlertView 仿iOS的AlertViewController @adad184 - MMPopupView Pop-up based view(e.g. alert sheet), can easily customize.

Questions

Feel free to contact me or create an issue

made with ♥

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].