react-native-enriched 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -74,12 +74,12 @@
74
74
  NSString *type = item.allKeys[j];
75
75
  if ([type isEqual:UTTypeJPEG.identifier] ||
76
76
  [type isEqual:UTTypePNG.identifier] ||
77
- [type isEqual:UTTypeWebP.identifier] ||
78
77
  [type isEqual:UTTypeHEIC.identifier] ||
79
78
  [type isEqual:UTTypeTIFF.identifier]) {
80
79
  imageData = [self getDataForImageItem:item[type] type:type];
81
- } else if ([type isEqual:UTTypeGIF.identifier]) {
82
- // gifs
80
+ } else if ([type isEqual:UTTypeWebP.identifier] ||
81
+ [type isEqual:UTTypeGIF.identifier]) {
82
+ // webp and gifs: read raw bytes directly — no re-encoding needed
83
83
  imageData = [pasteboard dataForPasteboardType:type];
84
84
  }
85
85
  if (!imageData) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-native-enriched",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Rich Text Editor component for React Native",
5
5
  "source": "./src/index.tsx",
6
6
  "main": "./lib/module/index.js",