react-native Modal

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Extensions
> Step 2: And Like the video. BONUS: You can also share it!

Introduction

Modal component is a simple way to present content above an enclosing view.

Parameters

Propdetails
animationTypeit's an enum of ('none', 'slide', 'fade') and it controls modal animation.
visibleits a bool that controls modal visiblity.
onShowit allows passing a function that will be called once the modal has been shown.
transparentbool to set transparency.
onRequestClose (android)it always defining a method that will be called when user tabs back button
onOrientationChange (IOS)it always defining a method that will be called when orientation changes
supportedOrientations (IOS)enum('portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right')


Got any react-native Question?