AppsFlyerSDK / appsflyer-react-native-plugin

AppsFlyer plugin for React Native
MIT License
282 stars 198 forks source link

null is not an object (evaluating 'RNAppsFlyer.initSdkWithCallBack') #432

Closed cankilinc closed 2 years ago

cankilinc commented 2 years ago

EXPO I getting this error " null is not an object (evaluating 'RNAppsFlyer.initSdkWithCallBack') ".

I also tried without callbacs ( null ) but same error.

My code

 useEffect(() => {
    try {
      appsFlyer.initSdk(
        {
          isDebug: true,
          devKey: "*****",
          onInstallConversionDataListener: true,
          onDeepLinkListener: true,
          timeToWaitForATTUserAuthorization: 10,
          appId: "********",
        },
        (res) => {
          console.log(res);
        },
        (err) => {
          console.error(err);
        }
      );
    } catch (error) {
      console.log(error);
    }

    return () => {};
  }, []);

Plugin Version

6.9.1

On what Platform are you having the issue?

android & ios

amit-kremer93 commented 2 years ago

duplication of this