react-native-firebase icon indicating copy to clipboard operation
react-native-firebase copied to clipboard

React native firebase can't auto-link in react-native

Open clementgyimah opened this issue 7 years ago • 4 comments

Issue

Describe your issue here

error React Native CLI uses autolinking for native dependencies, but the following modules are linked manually:

  • react-native-firebase (to unlink run: "react-native unlink react-native-firebase") This is likely happening when upgrading React Native from below 0.60 to 0.60 or above. Going forward, you can unlink this dependency via "react-native unlink " and it will be included in your app automatically. If a library isn't compatible with autolinking, disregard this message and notify the library maintainers.

Project Files

iOS

Click To Expand

ios/Podfile:

  • [ ] I'm not using Pods
  • [x] I'm using Pods and my Podfile looks like:
# N/A

AppDelegate.m:

// N/A


Android

Click To Expand

Have you converted to AndroidX?

  • [ ] my application is an AndroidX application?
  • [ ] I am using android/gradle.settings jetifier=true for Android compatibility?
  • [ ] I am using the NPM package jetifier for react-native compatibility?

android/build.gradle:

// N/A

android/app/build.gradle:

// N/A

android/settings.gradle:

// N/A

MainApplication.java:

// N/A

AndroidManifest.xml:

<!-- N/A -->


Environment

Click To Expand

react-native info output:

 OUTPUT GOES HERE
  • Platform that you're experiencing the issue on:
    • [ ] iOS
    • [ ] Android
    • [ ] iOS but have not tested behavior on Android
    • [ ] Android but have not tested behavior on iOS
    • [ ] Both
  • react-native-firebase version you're using that has this issue:
    • e.g. 5.4.3
  • Firebase module(s) you're using that has the issue:
    • e.g. Instance ID
  • Are you using TypeScript?
    • Y/N


Think react-native-firebase is great? Please consider supporting all of the project maintainers and contributors by donating via our Open Collective where all contributors can submit expenses. [Learn More]

clementgyimah avatar Sep 28 '19 10:09 clementgyimah

Please fill in the template providing further details on version of rnfb that you use ios / Android details and what modules are being linked. Did you follow react-native unlink react-native-firebase advice and are you on latest version of cli?

xzilja avatar Sep 28 '19 14:09 xzilja

Unlink the modules that you've linked manually. React native >=0.60 enables autolinking. So unlink by "react-native unlink module_name"

punyaslokdutta avatar Oct 05 '19 08:10 punyaslokdutta

Hello 👋, to help manage issues we automatically close stale issues. This issue has been automatically marked as stale because it has not had activity for quite some time. Has this issue been fixed, or does it still require the community's attention?

This issue will be closed in 15 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Nov 04 '19 06:11 stale[bot]

Closing this issue after a prolonged period of inactivity. If this is still present in the latest release, please feel free to create a new issue with up-to-date information.

stale[bot] avatar Nov 19 '19 07:11 stale[bot]