https://github.com/opengeekslab/labarchives-cookies
https://github.com/opengeekslab/labarchives-cookies
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/opengeekslab/labarchives-cookies
- Owner: openGeeksLab
- License: mit
- Created: 2017-06-16T06:04:09.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-16T06:56:23.000Z (about 9 years ago)
- Last Synced: 2025-11-21T16:03:05.189Z (7 months ago)
- Language: Java
- Size: 760 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
## labarchives-cookies
Cookie manager for react native.
### Installation
1. `npm install labarchives-cookies.git`
2. `react-native link labarchives-cookies`
### Usage
```javascript
import CookieManager from 'labarchives-cookies';
// set a cookie
CookieManager.set({
name: 'myCookie',
value: 'myValue',
domain: 'some domain',
origin: 'some origin',
path: '/',
version: '1',
expiration: '2015-05-30T12:30:00.00-05:00'
}, (err, res) => {
console.log('cookie set!');
console.log(err);
console.log(res);
});
```