appsflyer-react-native-plugin: current react-native.config.js doesn't work with React Native 0.69

Report

Plugin Version

On what Platform are you having the issue?

  • ios

What did you do?

  • pod install --project-directory=ios or npx react-native link with React Native v0.69.0

What did you expect to happen?

  • every required pod files install properly, but auto link not work

What happened instead?

  • react-native auto link not worked

Please provide any other relevant information.

React Native CLI v8(used within react-native v0.69.0) has breaking changes about react-native.config.js and podspecPath option Removed assets and hooks from react-native.config.js – you'll need to remove these properties from your config podspecPath was removed from the iOS dependency config (fyi. https://reactnative.dev/blog/2022/06/21/version-069)

when I remove below line within react-native.config.js, and it works fine

 module.exports = {
   dependency: {
     platforms: {
-      ios: { podspecPath: path.join(__dirname, 'react-native-appsflyer.podspec') },
       android: {
         packageImportPath: 'import com.appsflyer.reactnative.RNAppsFlyerPackage;',
         packageInstance: 'new RNAppsFlyerPackage()',

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 15
  • Comments: 35 (3 by maintainers)

Most upvoted comments

+1 With RN 0.70.2:

warn Package react-native-appsflyer contains invalid configuration: "dependency.platforms.ios.podspecPath" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.

Any news when it will be released?

Any update on this …?

bump