[links] More minor fixes

This commit is contained in:
Chris Bianca 2018-03-23 14:36:16 +00:00
parent b9dab3cb17
commit 56d9c43a81
3 changed files with 6 additions and 4 deletions

View File

@ -6,7 +6,7 @@ import type DynamicLink from './DynamicLink';
import type { NativeNavigationParameters } from './types'; import type { NativeNavigationParameters } from './types';
export default class NavigationParameters { export default class NavigationParameters {
_forcedRedirectEnabled: string | void; _forcedRedirectEnabled: boolean | void;
_link: DynamicLink; _link: DynamicLink;
constructor(link: DynamicLink) { constructor(link: DynamicLink) {
@ -18,7 +18,7 @@ export default class NavigationParameters {
* @param forcedRedirectEnabled * @param forcedRedirectEnabled
* @returns {DynamicLink} * @returns {DynamicLink}
*/ */
setForcedRedirectEnabled(forcedRedirectEnabled: string): DynamicLink { setForcedRedirectEnabled(forcedRedirectEnabled: boolean): DynamicLink {
this._forcedRedirectEnabled = forcedRedirectEnabled; this._forcedRedirectEnabled = forcedRedirectEnabled;
return this._link; return this._link;
} }

View File

@ -94,4 +94,6 @@ export default class Links extends ModuleBase {
} }
} }
export const statics = {}; export const statics = {
DynamicLink,
};

View File

@ -32,7 +32,7 @@ export type NativeITunesParameters = {|
|}; |};
export type NativeNavigationParameters = {| export type NativeNavigationParameters = {|
forcedRedirectEnabled?: string, forcedRedirectEnabled?: boolean,
|}; |};
export type NativeSocialParameters = {| export type NativeSocialParameters = {|