react-native-easypopup
v1.0.16
Published
another popup for react native with lots of custom features
Downloads
2
Readme
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'} />