microsoft / appcenter-sdk-react-native

Development repository for the App Center SDK for React Native

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Disable autolinking for React Native 0.60 and above

shariqahmed525 opened this issue Β· comments

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch appcenter@4.4.4 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/appcenter/react-native.config.js b/node_modules/appcenter/react-native.config.js
index 9d40c82..8fb1810 100644
--- a/node_modules/appcenter/react-native.config.js
+++ b/node_modules/appcenter/react-native.config.js
@@ -3,9 +3,7 @@ const path = require('path');
 module.exports = {
   dependency: {
     platforms: {
-      ios: {
-        podspecPath: path.join(__dirname, 'ios', 'appcenter-core.podspec')
-      },
+      ios: null,
       android: {
         packageInstance: 'new AppCenterReactNativePackage(getApplication())'
       }

This issue body was partially generated by patch-package.

commented

Hi @shariqahmed525 , thank you for reaching out and for your support!
Please use the original issue thread #979 for posting a workaround, so everyone following the issue could see it.

I'm closing this as not a real issue.

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch appcenter@4.4.4 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/appcenter/react-native.config.js b/node_modules/appcenter/react-native.config.js
index 9d40c82..8fb1810 100644
--- a/node_modules/appcenter/react-native.config.js
+++ b/node_modules/appcenter/react-native.config.js
@@ -3,9 +3,7 @@ const path = require('path');
 module.exports = {
   dependency: {
     platforms: {
-      ios: {
-        podspecPath: path.join(__dirname, 'ios', 'appcenter-core.podspec')
-      },
+      ios: null,
       android: {
         packageInstance: 'new AppCenterReactNativePackage(getApplication())'
       }

This issue body was partially generated by patch-package.

Still Getting the error 'AppCenterReactNative.h' file not found in react native v0.69.2

commented

@justinkx , just to clarify. Is it working for you in RN v0.69.0 and not working in RN v0.69.2?

@justinkx , just to clarify. Is it working for you in RN v0.69.0 and not working in RN v0.69.2?

Its not working on both react native versions

commented

@justinkx , the fix is not released yet. Please follow the #979 thread.