merge-images icon indicating copy to clipboard operation
merge-images copied to clipboard

Use with react native

Open Luke-Tan opened this issue 6 years ago • 4 comments

Is it possible for this to work out of the box with react native? I have tried using both react native canvas as well as node canvas but both seem to have its share of issues. Is support for react native likely to be added in the future?

Luke-Tan avatar Oct 23 '18 04:10 Luke-Tan

What is the error you are getting? I integrated it well with a couple frameworks now (frontend and backend). What is going on with react?

MarcGodard avatar Mar 12 '19 20:03 MarcGodard

I have also just found a issue with it

[Unhandled promise rejection: TypeError: undefined is not an object (evaluating 'window.document.createElement')] Stack trace: node_modules\merge-images\dist\index.umd.js:25:70 in node_modules\promise\setimmediate\core.js:45:7 in tryCallTwo node_modules\promise\setimmediate\core.js:200:23 in doResolve node_modules\promise\setimmediate\core.js:66:12 in Promise node_modules\merge-images\dist\index.umd.js:21:20 in mergeImages

stubbo avatar Apr 15 '19 08:04 stubbo

React Native isn't something I'm interested in supporting myself but happy to accept a PR for this.

lukechilds avatar Apr 15 '19 10:04 lukechilds

You can use combination between html and webview. This is not the best solution but this works 💯

  1. create html file , drop jssourse in

  2. install https://github.com/react-native-community/react-native-webview

3.bridge html with react native (inject js with your image and configuration)

Also you can try this one https://github.com/guhungry/react-native-photo-manipulator

cristea2017 avatar Sep 16 '20 13:09 cristea2017