appsflyer-react-native-plugin
appsflyer-react-native-plugin copied to clipboard
`UnifiedDeepLinkData` type definition is different from real data
Report
Current type UnifiedDeepLinkData is different from real data
Current type definition
export type UnifiedDeepLinkData = {
status: "success" | "failure",
type: "onDeepLinking",
deepLinkStatus: 'FOUND' | 'NOT_FOUND' | 'Error',
isDeferred: boolean,
data: {
campaign: string;
deep_link_value: string;
deep_link_sub1?: string;
media_source: string;
pid?: string;
link: string,
af_sub1?: string;
af_sub2?: string;
af_sub3?: string;
af_sub4?: string;
af_sub5?: string;
[key: string]: any;
}
}
Real data
data is not an object but string, and deepLinkStatus is not "Error" but "ERROR"
Plugin Version
6.12.2
On what Platform are you having the issue?
Android
What did you do?
Added validation of type "string"
What did you expect to happen?
Type should be changed
What happened instead?
data is not an object but string, and deepLinkStatus is not "Error" But "ERROR"