Skip to content
This repository has been archived by the owner on Jun 30, 2022. It is now read-only.

cannot resolve package #1

Closed
ZeroCool00 opened this issue Apr 27, 2018 · 3 comments
Closed

cannot resolve package #1

ZeroCool00 opened this issue Apr 27, 2018 · 3 comments

Comments

@ZeroCool00
Copy link

ZeroCool00 commented Apr 27, 2018

I successfully link your project but its still say

 error: package me.listenzz.modal does not exist
import me.listenzz.modal.TranslucentModalReactPackage;

in my gradle.setting i succesfully get this package but still its failing. is there anything i m missing ?

include ':react-native-modal-translucent'
project(':react-native-modal-translucent').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-modal-translucent/android')
@ZeroCool00
Copy link
Author

Finally solved it.. i just copy the model class and add it to my project, no need to install whole library, now its working fine. Thanks for this great solution.

@wkoutre
Copy link

wkoutre commented May 9, 2018

react-native link did not correctly edit my project's MainApplication.javafile.

I had to add:

import me.listenzz.modal.TranslucentModalReactPackage;

...

protected List<ReactPackage> getPackages() {
      return Arrays.<ReactPackage>asList(
            new TranslucentModalReactPackage(),
             ...

@JslinSir
Copy link

How to use in the code

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

No branches or pull requests

4 participants