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

Cannot get it to work as a child component. #13

Open
escromartie opened this issue Dec 9, 2020 · 2 comments
Open

Cannot get it to work as a child component. #13

escromartie opened this issue Dec 9, 2020 · 2 comments

Comments

@escromartie
Copy link

I thought this was the answer to my problems. I am working on a react-native project using Expo for iOS. I need to have a graphical child screen to display some info. It is a simple game.

When I built the project as listed, it worked! I rewrote it as a functional component, and it worked!

Then, I tried to use it as a child component. No joy! I tried several ways. No luck. All I get is a blank screen.

Also, hot reload appears to not be working.

I have attached my test project (minus the node_modules and package_lock.json files).

Please help.

copy-2d.zip

@flyskywhy
Copy link

@escromartie , you can try @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 😋

@escromartie
Copy link
Author

escromartie commented Dec 24, 2020 via email

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

2 participants