react-native-cookies icon indicating copy to clipboard operation
react-native-cookies copied to clipboard

Package need react-native link after linking

Open kukko opened this issue 7 years ago • 8 comments

I already ejected my React-Native project with the command below:

yarn run eject

After that I installed and linked this package with the following commands:

yarn add react-native-cookies
react-native link react-native-cookies

And I added the following line to the beginning of my App.js file:

import CookieManager from 'react-native-cookies';

But when I start my app on my Android phone with Expo, it show this error:

react-native-cookies: Import libraries to android "react-native link react-native-cookies"

The linking process did everything in the Android project which was listed at the manual linking, so I don't know what is the problem. I browsing the Internet for hours for any solution but I couldn't. Can you help me out?

react-native -v output:

react-native-cli: 2.0.1
react-native: 0.50.3

kukko avatar Dec 01 '17 12:12 kukko

Have you solved it?

rastogitech avatar Jan 02 '18 09:01 rastogitech

I have same problem

ykhanbabaei avatar Jan 06 '18 12:01 ykhanbabaei

same

ozio avatar Jan 13 '18 12:01 ozio

I have the sane problem

react-native-cli: 2.0.1
react-native: 0.50.3
exp 47.1.1

pierol avatar Jan 14 '18 10:01 pierol

I think we are tryng to do something that it's not supposed to do. When you detached a CRNA created app must be compile, build and install to the hardware device or in emulator as a standalone app in Android Studio. Then you create the tunnel with expo and you continue to develop with hot reloading.

pierol avatar Jan 14 '18 23:01 pierol

I having same problem. Anybody found any solution for the same? @kukko , can you please add "help wanted" label to this issue?

harsh-lamba avatar Jan 24 '18 11:01 harsh-lamba

Issue resolved by manually setting up react-native-cookies instead of automatic linking modules.

As mentioned in "Import libraries to android "rnpm link" #53 ".

harsh-lamba avatar Jan 24 '18 12:01 harsh-lamba

I have forked the repo here: https://github.com/safaiyeh/react-native-cookie-store We can create issues and PRs there to continue the development of the project.

safaiyeh avatar Jan 02 '20 19:01 safaiyeh