AppsFlyerSDK / appsflyer-react-native-plugin

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

Invariant Violation: Native module cannot be null #389

Closed anas-araid closed 2 years ago

anas-araid commented 2 years ago

Report

Plugin Version

via 6.6.1

On what Platform are you having the issue?

ios

What did you do?

  1. yarn add react-native-appsflyer
  2. cd ios && pod install

What did you expect to happen?

Initialize the sdk

What happened instead?

Gives the build error Native Module cannot be null

Please provide any other relevant information.

appsFlyer.initSdk(
  {
    devKey: '***********',
    isDebug: false,
    appId: '*******',
  },
  (result) => {
    console.log(result);
  },
  (error) => {
    console.error(error);
  }
);

Using the old api (5.1.2) it works fine

jorgearuv commented 2 years ago

I have the same issue with Expo v44

amit-kremer93 commented 2 years ago

try to clean your project and remove derived data. then build again

github-actions[bot] commented 2 years ago

👋 Hi @asdf1899 and Thank you for reaching out to us. In order for us to provide optimal support, please submit a ticket to our support team at support@appsflyer.com. When submitting the ticket, please specify:

amit-kremer93 commented 2 years ago

@jorgeruvalcaba Please take a look here: https://github.com/AppsFlyerSDK/appsflyer-react-native-plugin/issues/391