Преглед на файлове

Add docs about `overrideBackPress` to `showModal` (#4152)

Alexander Zubko преди 6 години
родител
ревизия
146e7638e1
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2
    1
      docs/top-level-api.md

+ 2
- 1
docs/top-level-api.md Целия файл

@@ -151,7 +151,8 @@ Navigation.showModal({
151 151
   passProps: {}, // simple serializable object that will pass as props to the modal (optional)
152 152
   navigatorStyle: {}, // override the navigator style for the screen, see "Styling the navigator" below (optional)
153 153
   navigatorButtons: {}, // override the nav buttons for the screen, see "Adding buttons to the navigator" below (optional)
154
-  animationType: 'slide-up' // 'none' / 'slide-up' , appear animation for the modal (optional, default 'slide-up')
154
+  animationType: 'slide-up', // 'none' / 'slide-up' , appear animation for the modal (optional, default 'slide-up')
155
+  overrideBackPress: false // true / false, (Android only), prevents back button and hardware back button from hiding the dialog on Android, instead the [navigator event](https://wix.github.io/react-native-navigation/#/screen-api?id=setonnavigatoreventcallback) 'backPress' will be sent (optional)
155 156
 });
156 157
 ```
157 158