You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+4-3
Original file line number
Diff line number
Diff line change
@@ -112,16 +112,17 @@ This component supports all the properties of the original react native modal co
112
112
| animateOnMount | false |`bool`| Determine whether or not animate the modal if it's visible when it mounts. |
113
113
| animationDuration | 300 |`number`| Duration of the animation. |
114
114
| position | bottom |`string`| Position where the sliding animation of the modal should start. Accepted values: "top", "bottom", "left", "right". |
115
-
| containerStyle | - |`object`| Container styles used for positioning the modal with flexbox (default: alignItems: 'center', flex: 1, justifyContent: 'center'). See the examples. |
115
+
| containerStyle | - |`any`| Container styles used for positioning the modal with flexbox (default: alignItems: 'center', flex: 1, justifyContent: 'center'). See the examples. |
116
116
| isNative | true |`bool`| Determine the usage of the react native modal component or a simple view wrapper instead. It can be set to false to overcome some react native modal limitations (for example to have more than one modal open at the same time). |
117
117
| onAnimateClose | () => null |`func`| Callback executed after the modal is closed. |
118
118
| onAnimateOpen | () => null |`func`| Callback executed after the modal is open. |
119
-
| overlayStyle | - |`object`| Styles used to define the overlay backgroundColor (default: "#000") and opacity (default: 0.5). |
119
+
| overlayStyle | - |`any`| Styles used to define the overlay backgroundColor (default: "#000") and opacity (default: 0.5). |
120
+
| screenHeight | computed screen height |`number`| Allow the user to manually set the right screen height to adjust the keyboardSpacer due to an issue on iPad in react native https://github.com/facebook/react-native/issues/7340.|
120
121
| shouldAnimateOnOverlayPress | true |`bool`| Determine whether or not animate the modal closing down when the overlay is pressed. |
121
122
| shouldAnimateOnRequestClose | false |`bool`| Determine whether or not animate the modal closing down when the onRequestClose callback is executed. |
122
123
| shouldCloseOnOverlayPress | true |`bool`| Determine whether or not allow the modal closing down if the overlay is pressed. |
123
124
| showOverlay | true |`bool`| Determine whether or not showing the overlay. In combination with isNative={false} it is possible to interact with the background of the application when the modal is still open. |
124
-
| style | - |`object`| Styles of the modal (default: backgroundColor: '#fff', justifyContent: 'center'). |
125
+
| style | - |`any`| Styles of the modal (default: backgroundColor: '#fff', justifyContent: 'center'). |
125
126
126
127
Note: this component sets some properties of the underlying native modal component to allow sliding flexibility in each direction and the clickable overlay behavior, therefore we suggest not to change those. However, you can set to 0 the animationDuration prop to avoid the component sliding logic from top, bottom, left or right and therefore turning on the react native modal animationType prop, disabled by default. Here the list of the react native modal properties set by default:
Copy file name to clipboardexpand all lines: package.json
+2-2
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"name": "react-native-modal-wrapper",
3
-
"version": "2.0.1",
3
+
"version": "2.1.0",
4
4
"description": "Wrapper component that extends the react native Modal component, adding overlay clickable behavior and allowing swipe in and out in all directions",
0 commit comments