You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Summary
This PR removes the flag to include custom line breaks on `toDataUrl`
method. Some software could not read base64 with additional line break
characters, so it could lead to corrupting the image (like in
react-native-share). Fixes#1986.
## Test Plan
`TestsExample` -> `Test1986`
## Compatibility
| OS | Implemented |
| ------- | :---------: |
| iOS | ✅ |
| Android | ✅ |
Bug
The
toDataURL
method contains line breaks\r\n
, which break the base64 string.Unexpected behavior
This can lead to corrupted images when e.g. using it in react-native-share.
Environment info
Library version: 13.4.0
Short, Self Contained, Correct (Compilable), Example
https://snack.expo.dev/@robrechtme/data-url-bug
The text was updated successfully, but these errors were encountered: