wxik / react-native-rich-editor

Lightweight React Native (JavaScript, H5) rich text editor
https://wxik.github.io/react-native-rich-editor/web
MIT License
812 stars 304 forks source link

cookies aren't shared in iOS #140

Open soojinP opened 3 years ago

soojinP commented 3 years ago

There is an issue with not being able to set cookies on iOS. I tried to solve this problem and finally I found out that it can be resolved using the sharedCookiesEnabled={true} property in webView. Can you apply it to the next version?

SnidelyWhiplash commented 3 years ago

This should already be doable as {...rest} is passed onto the WebView on this line.

So something like:

<RichEditor
  ref={this._myEditor}
  placeholder="My placeholder"
  sharedCookiesEnabled
  ...etc...
/>

should work I believe.