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
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
114
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
115
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
115
116
useNavigationComponentDidAppear((e) => {
116
117
console.log(`${e.componentName} appeared`)
117
118
})
@@ -144,7 +145,8 @@ Called each time this component disappears from screen (detached from the view h
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
148
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
149
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
148
150
useNavigationComponentDidDisappear((e) => {
149
151
console.log(`${e.componentName} appeared`)
150
152
})
@@ -221,7 +223,8 @@ Invoked only on iOS pageSheet modal when swipeToDismiss flag is set to true and
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
226
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
227
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
225
228
useNavigationModalAttemptedToDismiss((e) => {
226
229
console.log(`Modal attempted dismissed on componentId: ${e.componentId}`)
227
230
})
@@ -254,7 +257,8 @@ Invoked when modal dismissed. [more info](https://wix.github.io/react-native-nav
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
260
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
261
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
258
262
useNavigationModalDismiss((e) => {
259
263
console.log(`Modals dismissed: ${e.modalsDismissed} on componentId: ${e.componentId}`)
260
264
})
@@ -287,7 +291,8 @@ Invoked when screen is popped. [more info](https://wix.github.io/react-native-na
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
294
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
295
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
291
296
useNavigationScreenPop((e) => {
292
297
console.log(`Screen was popped on componentId: ${e.componentId}`)
293
298
})
@@ -412,7 +417,8 @@ Called when a SearchBar from NavigationBar gets updated. [more info](https://wix
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
420
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
421
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
416
422
useNavigationSearchBarUpdate((e) => {
417
423
console.log(`Seach bar text changed to ${e.text}${e.focussed?' (focussed)':''} on this screen`)
418
424
})
@@ -447,7 +453,8 @@ Called when the cancel button on the SearchBar from NavigationBar gets pressed.
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
456
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
457
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
451
458
useNavigationSearchBarCancelPress((e) => {
452
459
console.log('Seach bar cancel button pressed on this screen')
453
460
})
@@ -480,7 +487,8 @@ Called when preview peek is completed. [more info](https://wix.github.io/react-n
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider> (if neither of those are provided it will warn you at least you provide a `{ global: true}` option)
490
+
// Listen events only for this screen when using withNavigation HOC or <NavigationProvider>
491
+
// (if neither of those are provided it will warn you at least you provide a `{ global: true }` option)
484
492
useNavigationPreviewComplete((e) => {
485
493
console.log(`Preview component ${e.previewComponentId} shown on this screen`)
0 commit comments