diff --git a/releases/next/docs/modal.html b/releases/next/docs/modal.html index 9b7ef7014d8..bdaa7006353 100644 --- a/releases/next/docs/modal.html +++ b/releases/next/docs/modal.html @@ -45,8 +45,10 @@ then consider using a top-level Navigator.

); } }

Props #

animated?: bool #

Deprecated

Use the animationType prop instead.

animationType?: PropTypes.oneOf(['none', 'slide', 'fade']) #

The animationType prop controls how the modal animates.

  • slide slides in from the bottom
  • fade fades into view
  • none appears without an animation

Default is set to none.

onShow?: PropTypes.func #

The onShow prop allows passing a function that will be called once the modal has been shown.

transparent?: PropTypes.bool #

The transparent prop determines whether your modal will fill the entire view. Setting this to true will render the modal over a transparent background.

visible?: PropTypes.bool #

The visible prop determines whether your modal is visible.

androidhardwareAccelerated?: PropTypes.bool #

The hardwareAccelerated prop controls whether to force hardware acceleration for the underlying window.

androidonRequestClose?: Platform.OS === 'android' ? PropTypes.func.isRequired : PropTypes.func #

The onRequestClose callback is called when the user taps the hardware back button.

iosonOrientationChange?: PropTypes.func #

The onOrientationChange callback is called when the orientation changes while the modal is being displayed. -The orientation provided is only 'portrait' or 'landscape'. This callback is also called on initial render, regardless of the current orientation.

iossupportedOrientations?: PropTypes.arrayOf(PropTypes.oneOf(['portrait', 'portrait-upside-down', 'landscape', 'landscape-left', 'landscape-right'])) #

The supportedOrientations prop allows the modal to be rotated to any of the specified orientations. -On iOS, the modal is still restricted by what's specified in your app's Info.plist's UISupportedInterfaceOrientations field.

You can edit the content above on GitHub and send us a pull request!

← PrevNext →

Who's using React Native?

Thousands of apps are using React Native, from established Fortune 500 companies to hot new startups. If you're curious to see what can be accomplished with React Native, check out these apps!

Tesla

Tesla

iOS · Android

Vogue

Vogue

iOS

Some of these are hybrid native/React Native apps.

A curated list of open source React Native apps is also being kept by React Native News.

Who's using React Native?

Thousands of apps are using React Native, from established Fortune 500 companies to hot new startups. If you're curious to see what can be accomplished with React Native, check out these apps!

Tesla

Tesla

iOS · Android

Vogue

Vogue

iOS

Some of these are hybrid native/React Native apps.

A curated list of open source React Native apps is also being kept by React Native News.