alibaba / GCanvas

A lightweight cross-platform graphics rendering engine. (超轻量的跨平台图形引擎) https://alibaba.github.io/GCanvas
Apache License 2.0
1.88k stars 208 forks source link

react-native link react-native-gcanvas Android error #174

Open YvesCheung opened 4 years ago

YvesCheung commented 4 years ago

For version react-native-gcanvas:0.0.6

in react-native-gcanvas/android/build.gradle :

compileOnly project(':android:gcanvas_library')
compileOnly project(':android:bridge_spec')
compileOnly project(':android:adapters:gcanvas_imageloader_fresco')
compileOnly project(':android:adapters:bridge_adapter')

None of these project could be found in node_modules. Use remote dependencies instead of local project declaration?

jwxbond commented 4 years ago

react-native-gcanvas, not maintance yet. you can create a new version

flyskywhy commented 3 years ago

@YvesCheung

Since Alibaba feat: delete weex bridge & reactive bridge, here comes the @flyskywhy/react-native-gcanvas npm package.

After months work, @flyskywhy/react-native-gcanvas runs well on Android and iOS, fix several bugs and add feat: support drawImage() from require('some.png') on Android, iOS and Web described in Changelog.md, refactor with the detailed Example As Usage in README.md.

With Performance Test Result, and Convenient With Browser-like canvas APIs with the easily <canvas/> ported example react-native-particles-bg runs on Android, iOS and Web, @flyskywhy/react-native-gcanvas is the best choice for now :yum: