React Native ~ Linking React Native Cookies - rohit120582sharma/Documentation GitHub Wiki
npm install react-native-cookies --save
react-native link react-native-cookies
-
Open your project in Xcode, right click on
Libraries
and clickAdd Files to "Your Project Name"
Look undernode_modules/react-native-cookies/ios
and addRNCookieManagerIOS.xcodeproj
-
Add
libRNCookieManagerIOS.a
toBuild Phases
->Link Binary With Libraries
-
Clean and rebuild your project
-
android/settings.gradle
include ':react-native-cookies' project(':react-native-cookies').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-cookies/android')
-
android/app/build.gradle
dependencies { ... compile project(':react-native-cookies') }
-
MainApplication.java
import com.psykar.cookiemanager.CookieManagerPackage; @Override protected List<ReactPackage> getPackages() { return Arrays.asList( new MainReactPackage(), new CookieManagerPackage() ); }