From 175f56f174439c7124e1857a95ea01194909afd8 Mon Sep 17 00:00:00 2001 From: jeffreyffs Date: Wed, 10 Apr 2019 17:11:32 -0700 Subject: [PATCH] [Typescript] Add type for 'enableURLHandling' (#5803) * updated types for 'enableURLHandling' * Updated Changelog --- packages/react-navigation/CHANGELOG.md | 2 ++ packages/react-navigation/typescript/react-navigation.d.ts | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/packages/react-navigation/CHANGELOG.md b/packages/react-navigation/CHANGELOG.md index be85989c..b574c064 100644 --- a/packages/react-navigation/CHANGELOG.md +++ b/packages/react-navigation/CHANGELOG.md @@ -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 diff --git a/packages/react-navigation/typescript/react-navigation.d.ts b/packages/react-navigation/typescript/react-navigation.d.ts index 67a3273d..238efff7 100644 --- a/packages/react-navigation/typescript/react-navigation.d.ts +++ b/packages/react-navigation/typescript/react-navigation.d.ts @@ -882,6 +882,12 @@ declare module 'react-navigation' { export interface NavigationContainerProps { 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,