0.0.7 • Published 5 years ago

react-native-android-alert-mjr v0.0.7

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

react-native-android-alert-mjr

this is a library of alert components. you can use it by installing it on your React-Native project.

Installation

  1. npm i react-native-android-alert-mjr

  2. npm i react-native-responsive-screen

  3. npm i react-native-modal

install carefully above package on your react-native project and use,it easily , and simple :tw-1f385:

Usage

Default Alert
import Alert from 'react-native-android-alert-mjr';
 
render() {
        return (
            <View>
                <Alert
                    isVisible={this.state.visiblealert}
                    text={this.state.Alert}
                    closeText={"close"}
                    onClose={() => {
                        this.setState({ visiblealert: false })
                    }}
                />
            </View>
        );
    }

props

NameTypeDefaultDescription
isVisibleboolREQUIREDShow the Alert?
textstringREQUIREDtext in center Alert Component
closeTextstringREQUIREDtext on close button
onClosefunc() => isVisible(bool)close modal(!isVisible => close modal)
0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago