Using FabricJS With React-Native

百般思念 提交于 2020-01-04 13:46:21

问题


I have an application which is built on a ReactJS and uses FabricJS extensively. We plan to reuse a lot of code and build mobile apps using React-Native but I am not sure how we can integrate the FabricJS component into it.

The app is something like https://www.my-wallsticker.de/wandtattoo-selber-gestalten/

I have found and used https://www.npmjs.com/package/react-fabricjs but nothing available for React-Native.

What could be the solution?


回答1:


You would have to use a WebView with canvas (or something like this library: https://github.com/iddan/react-native-canvas) in order to be able to render anything with FabricJS.



来源:https://stackoverflow.com/questions/43032584/using-fabricjs-with-react-native

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!