Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant find RCTGCanvasView on android for react native bridge #26

Closed
DavidGOrtega opened this issue Mar 28, 2018 · 5 comments
Closed

Cant find RCTGCanvasView on android for react native bridge #26

DavidGOrtega opened this issue Mar 28, 2018 · 5 comments

Comments

@DavidGOrtega
Copy link

Hi,

according to

import React, { Component, PropTypes } from 'react';
import { requireNativeComponent, View } from 'react-native';

var RCTGCanvasView = requireNativeComponent('RCTGCanvasView', GCanvasView);

export default class GCanvasView extends Component {
	static propTypes = {
		// isOffscreen: PropTypes.bool,
		...View.propTypes
	};

	render() {
		return ( <RCTGCanvasView {...this.props} /> );
	};
}

GCanvasView is the native component RCTGCanvasView however I cant find the android implementation, nor using REACT_CLASS either.

@hejian1639
Copy link

hi DavidGOrtega,

do you mean can't find out RCTGCanvasView?
actually there is a name issue, please try to use 'GCanvasView' instead.

@DavidGOrtega
Copy link
Author

Hi @hejian1639

actually I mean that I can't find the android native component RCTGCanvasView. The code that I pasted before is the js code of GCanvasView and it's a wrapper over the native component. Where I can find the RCTGCanvasView on android? I do a search in the project but I just only find it for iOS.

@fREEDtICE
Copy link
Contributor

fREEDtICE commented Apr 8, 2018

Hi,@DavidGOrtega, We just updated the docs, please check the new document and try to integrate GCanvas into your App. Please let us know the result. Thanks.

https://alibaba.github.io/GCanvas/docs/Integrate%20GCanvas%20on%20ReactNative.html

@pongponglau
Copy link

I cannot find RCTGCanvasView on android too. Where can i find it?

Thanks a lot

@flyskywhy
Copy link

@DavidGOrtega @pongponglau

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 😋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants