[Typescript] Add type for 'enableURLHandling' (#5803)

* updated types for 'enableURLHandling'

* Updated Changelog
This commit is contained in:
jeffreyffs
2019-04-10 17:11:32 -07:00
parent 338f95acf9
commit 175f56f174
2 changed files with 8 additions and 0 deletions

View File

@@ -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

View File

@@ -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,