Skip to content
This repository has been archived by the owner on Jan 24, 2020. It is now read-only.

RNPM link script is not working on 0.29 applications #39

Closed
dphov opened this issue Jul 22, 2016 · 7 comments
Closed

RNPM link script is not working on 0.29 applications #39

dphov opened this issue Jul 22, 2016 · 7 comments

Comments

@dphov
Copy link

dphov commented Jul 22, 2016

Reference #37 , we should update rnpm script so that the installation could be easier.
@joeferraro

@afilp
Copy link

afilp commented Jul 22, 2016

+1

2 similar comments
@akzhou
Copy link

akzhou commented Jul 22, 2016

+1

@Lothav
Copy link

Lothav commented Jul 25, 2016

+1

@cbcye
Copy link

cbcye commented Aug 19, 2016

+1 , how to manual import. my RN is 0.31

@geniusgordon
Copy link

+1

@liquidprogrammer
Copy link

liquidprogrammer commented Sep 12, 2016

Hey there.
For manual importing u can add several lines in this files (on android):

MainApplication.java

...
import com.psykar.cookiemanager.CookieManagerPackage;
...
@OverRide
protected List getPackages() {
return Arrays.asList(
new MainReactPackage(),
....,
new CookieManagerPackage()
);
}

android/app/build.gradle

dependencies {
...
compile project(':react-native-cookies')
}

android/settings.gradle

include ':app', ..., ':react-native-cookies'
...
project(':react-native-cookies').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cookies/android')

After that you should reinstall your app on device/emulator with react-native run-android.
And everything should work

P.S. For ios, as i remember, you need to add react-native-cookies xcode project to libraries list of your xcode project. May be something else, but im not sure

@joeferraro
Copy link
Owner

Cheers @liquidprogrammer

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

8 participants