1.0.17 • Published 4 years ago

react-native-easypopup-refis360movil v1.0.17

Weekly downloads
20
License
ISC
Repository
-
Last release
4 years ago

react-native-easypopup

npm i --save react-native-easypopup

Requirements

1.npm i react-native-vector-icons

2.react-native link react-native-vector-icons

3. imports

import Popup from 'react-native-easypopup';

4. place component

Place in your js

   <Popup
                    showpopup={this.state.showpopup}
                    type="alert" //info
                    semitransparent={false}
                    animation={'none'} //fade - slide - none
                    onPress={() => this.setState({ showpopup: !this.state.showpopup })}
                    contenttext={"Kuponunuz silinecektir, Onaylıyormsunuz?"}
                    confirmaction={() => alert('silme işlemi yapılıyor') }
                    cancelaction={() => alert('silme işlemi iptal edildi')}
                    acceptbuttontitle={'Kuponu Sil'}
                    cancelbuttontitle={'İptal Et'} />