Closed ShivamRawat0l closed 4 years ago
@ShivamRawat0l
Please advise if the solution provided on stack overflow solved this issue.
@Drazail Sorry but no. It didn't solved. I tried many things but it didn't work.
@ShivamRawat0l
- Open up
android/app/src/main/java/[...]/MainActivity.java
- Add
com.cinder92.musicfiles.RNReatNativeGetMusicFilesPackage;
to the imports at the top of the file- Add
new RNReatNativeGetMusicFilesPackage()
to the list returned by thegetPackages()
method- Append the following lines to
android/settings.gradle
:include ':react-native-get-music-files' project(':react-native-get-music-files').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-get-music-files/android')
- Insert the following lines inside the dependencies block in
android/app/build.gradle
:compile project(':react-native-get-music-files')
if the above doesn't work either, please reproduce the issue in a public repo so we can take a closer look at it.
Native modules are not defined in index.js of the react-native-get-music-files. cannot get property getAll of undefined
To keep the issues clean stackover flow link : https://stackoverflow.com/questions/54709843/react-native-nativemodules-not-defined-when-linking-a-library-with-it