Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/christoph-jerolimov/react-native-webview-shared-cookies-test
Test project for new react-native-webview sharedCookiesEnabled feature
https://github.com/christoph-jerolimov/react-native-webview-shared-cookies-test
Last synced: about 11 hours ago
JSON representation
Test project for new react-native-webview sharedCookiesEnabled feature
- Host: GitHub
- URL: https://github.com/christoph-jerolimov/react-native-webview-shared-cookies-test
- Owner: christoph-jerolimov
- Created: 2019-02-16T16:04:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-16T16:33:07.000Z (almost 6 years ago)
- Last Synced: 2025-01-17T02:11:04.788Z (9 days ago)
- Language: Objective-C
- Homepage:
- Size: 232 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test project for new react-native-webview sharedCookiesEnabled feature
This is just an example or test project for the
PR [#175](https://github.com/react-native-community/react-native-webview/pull/175)
in the react-native-webview project.It contains a small expressjs based server to set and clear cookies
and a React Native Compontent to call these endpoints with `fetch` or by opening
the URLs with an UIWebView or a WKWebView.For more details see
PR [#175](https://github.com/react-native-community/react-native-webview/pull/175).You can see the full diff against the master branch here:
[compare master...shared-cookies](https://github.com/react-native-community/react-native-webview/compare/master...jerolimov:shared-cookies)## Project setup
Project was created with
```
react-native init WebViewSharedCookies --template typescript
yarn add "react-native-webview@jerolimov/react-native-webview#shared-cookies"
react-native link react-native-webview
```## Run tests
* Run the local express server with `yarn server` (or npm run server).
* Start also the metro bundle for the React Native app with `yarn start` (or npm start).
* Open the Xcode project `ios/WebViewSharedCookies.xcodeproj` and run the app in an **iOS 9 or 10 Simulator**.See [server.js](server.js) and [WebViewTest.tsx](WebViewTest.tsx) how to set cookies.