merge-images
merge-images copied to clipboard
Use with react native
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?
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?
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
React Native isn't something I'm interested in supporting myself but happy to accept a PR for this.
You can use combination between html and webview. This is not the best solution but this works 💯
-
create html file , drop jssourse in
-
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