mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 17:23:42 +08:00
[Typescript] Add type for 'enableURLHandling' (#5803)
* updated types for 'enableURLHandling' * Updated Changelog
This commit is contained in:
@@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
- Add missing type for `enableURLHandling`
|
||||
|
||||
## [3.7.1] - [2019-04-10](https://github.com/react-navigation/react-navigation/releases/tag/3.7.1)
|
||||
|
||||
## Fixes
|
||||
|
||||
@@ -882,6 +882,12 @@ declare module 'react-navigation' {
|
||||
|
||||
export interface NavigationContainerProps<S = {}, O = {}> {
|
||||
uriPrefix?: string | RegExp;
|
||||
/**
|
||||
* Controls whether the navigation container handles URLs opened via 'Linking'
|
||||
* @see https://facebook.github.io/react-native/docs/linking
|
||||
* @see https://reactnavigation.org/docs/en/deep-linking.html
|
||||
*/
|
||||
enableURLHandling?: boolean; // defaults to true
|
||||
onNavigationStateChange?: (
|
||||
prevNavigationState: NavigationState,
|
||||
nextNavigationState: NavigationState,
|
||||
|
||||
Reference in New Issue
Block a user