[links] More minor fixes
This commit is contained in:
parent
b9dab3cb17
commit
56d9c43a81
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,4 +94,6 @@ export default class Links extends ModuleBase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const statics = {};
|
export const statics = {
|
||||||
|
DynamicLink,
|
||||||
|
};
|
||||||
|
|
|
@ -32,7 +32,7 @@ export type NativeITunesParameters = {|
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type NativeNavigationParameters = {|
|
export type NativeNavigationParameters = {|
|
||||||
forcedRedirectEnabled?: string,
|
forcedRedirectEnabled?: boolean,
|
||||||
|};
|
|};
|
||||||
|
|
||||||
export type NativeSocialParameters = {|
|
export type NativeSocialParameters = {|
|
||||||
|
|
Loading…
Reference in New Issue