AlirezaHadjar / expo-drag-drop-content-view

🖱️ Native drag-and-drop support in React Native.
https://expo-drag-drop-content-view.vercel.app
MIT License
230 stars 3 forks source link

png support #4

Closed MehediH closed 8 months ago

MehediH commented 8 months ago

hi! thank you for this very helpful library, it works great.

however - one issue, because the library defaults to JPEG format, when selecting the subject of a picture in iOS and dragging dropping it, the picture loses the transparent background due to the JPEG format. is it possible to configure this, so we can choose to request PNG files instead?

AlirezaHadjar commented 8 months ago

@MehediH Please check the v0.1.2 and see if the problem is fixed.

I'll close the issue. Please feel free to re-open it if you still have any issues.

MehediH commented 8 months ago

hey @AlirezaHadjar, thanks for the quick update. really appreciate it! I am having an issue with native modules, though.

I updated using

npx expo install expo-drag-drop-content-view@latest

and then i built a new version of my app, so that the update native code is included. but i am getting this error:

Invariant Violation: requireNativeComponent: "ViewManagerAdapter_ExpoDragDropContentView" was not found in the UIManager.

any idea what's up?

AlirezaHadjar commented 8 months ago

@MehediH just created a fresh expo project and tried out the latest version and had no issues. Which version of expo are you using? because in the latest version, I updated the package to v50.

You can do it by running the following commands:

npm install expo@latest
npx expo install --fix
npx expo run:ios

If that didn't help or you're already on v50, try these and see if it works:

npx expo install --fix
npx expo run:ios
MehediH commented 8 months ago

@AlirezaHadjar thanks man! I think the issue was with me being on v49, fixed now after updating. amazing library - thank you once again :)