问题
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