react-native-easypopup

another popup for react native with lots of custom features

Usage no npm install needed!

<script type="module">
  import reactNativeEasypopup from 'https://cdn.skypack.dev/react-native-easypopup';
</script>

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'} />