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()`.
---