From d4138996425afb14a4ceae5c3526b7661564c009 Mon Sep 17 00:00:00 2001 From: Daniel Israel Date: Wed, 16 Aug 2023 17:05:38 -0700 Subject: [PATCH] Removed note for android in Update RN_API.md `is_first_launch` is coming through as a boolean on android. So the note is no longer necessary. --- Docs/RN_API.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Docs/RN_API.md b/Docs/RN_API.md index 6277bc57..56827950 100644 --- a/Docs/RN_API.md +++ b/Docs/RN_API.md @@ -978,7 +978,7 @@ The code implementation for the conversion listener must be made prior to the in ```javascript const onInstallConversionDataCanceller = appsFlyer.onInstallConversionData( (res) => { - if (JSON.parse(res.data.is_first_launch) == true) { + if (res.data.is_first_launch) { if (res.data.af_status === 'Non-organic') { var media_source = res.data.media_source; var campaign = res.data.campaign; @@ -1009,8 +1009,6 @@ appsFlyer.initSdk(/*...*/); } ``` - Note** is_first_launch will be "true" (string) on Android and true (boolean) on iOS. To solve this issue wrap is_first_launch with JSON.parse(res.data.is_first_launch) as in the example above. - `appsFlyer.onInstallConversionData` returns a function the will allow us to call `NativeAppEventEmitter.remove()`.
---