Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supports Auto Linking in RN 0.60+? #491

Open
ShuKTan opened this issue Nov 21, 2019 · 6 comments
Open

Supports Auto Linking in RN 0.60+? #491

ShuKTan opened this issue Nov 21, 2019 · 6 comments

Comments

@ShuKTan
Copy link

ShuKTan commented Nov 21, 2019

Does this library support auto linking in react native 0.60+ version?

I could not find anything about auto linking in docs.

@Hristijan95
Copy link

Yes, it looks like auto linking is supported for RN 0.60.+, I've just tried.

@pcowgill
Copy link

In that case, should we change the name of this issue to something about documenting this? Or close this issue?

@pcowgill
Copy link

Based on this other issue, it sounds like we shouldn't close it just yet #520

@dipo1
Copy link

dipo1 commented Feb 26, 2020

Auto linking could mean 2 things.
Before react-native 0.60, auto-linking used to mean running the "react-native link" command.
After react-native 0.60 auto-linking now means not having to run the "react-native link" command.

I can confirm that the module does not support the auto-linking feature that comes with react-native 0.60. At least not for Android. I tested with react-native 0.60.5 and react 16.8.6

System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
Memory: 3.39 GB / 11.95 GB
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
Watchman: 4.9.4 - C:\Users\Dipo\bin\watchman\watchman.EXE
SDKs:
Android SDK:
Android NDK: 20.0.5594570
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312

The app stops immediately after it's launched and the following error is logged in the adb logcat.

java.lang.RuntimeException: Unable to instantiate application com.example.app.MainApplication: java.lang.ClassNotFoundException: Didn't find class "com.example.app.MainApplication" on path: DexPathList[[zip file "/data/app/com.example.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app-1/lib/x86, /data/app/com.example.app-1/base.apk!/lib/x86, /vendor/lib, /system/lib]]

However, after doing the manual linking (as described here), it works.

PS
I got duplicate module error so I had to undo the MainApplication.java setup.

@judygab
Copy link

judygab commented Mar 28, 2020

@diplo1

Auto linking could mean 2 things.
Before react-native 0.60, auto-linking used to mean running the "react-native link" command.
After react-native 0.60 auto-linking now means not having to run the "react-native link" command.

I can confirm that the module does not support the auto-linking feature that comes with react-native 0.60. At least not for Android. I tested with react-native 0.60.5 and react 16.8.6

System:
OS: Windows 10
CPU: (4) x64 Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz
Memory: 3.39 GB / 11.95 GB
Binaries:
Node: 12.16.1 - C:\Program Files\nodejs\node.EXE
Yarn: 1.17.3 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
npm: 6.13.4 - C:\Program Files\nodejs\npm.CMD
Watchman: 4.9.4 - C:\Users\Dipo\bin\watchman\watchman.EXE
SDKs:
Android SDK:
Android NDK: 20.0.5594570
IDEs:
Android Studio: Version 3.5.0.0 AI-191.8026.42.35.5791312

The app stops immediately after it's launched and the following error is logged in the adb logcat.

java.lang.RuntimeException: Unable to instantiate application com.example.app.MainApplication: java.lang.ClassNotFoundException: Didn't find class "com.example.app.MainApplication" on path: DexPathList[[zip file "/data/app/com.example.app-1/base.apk"],nativeLibraryDirectories=[/data/app/com.example.app-1/lib/x86, /data/app/com.example.app-1/base.apk!/lib/x86, /vendor/lib, /system/lib]]

However, after doing the manual linking (as described here), it works.

PS
I got duplicate module error so I had to undo the MainApplication.java setup.
If I'm using RN 0.6+, do I have to manually link libraries than or I can just do react-native link?

@sam9010
Copy link

sam9010 commented May 26, 2020

do you mean?
after run this code
npm install --save rn-fetch-blob
what do i do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants