- Notifications
You must be signed in to change notification settings - Fork48
🦍• React Renderer to build UI interfaces using canvas/WebGL (TV and Hardware-Accelerated GPU development based)
License
raphamorim/react-ape
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
React Renderer to build UI interfaces using Canvas/WebGL
React Ape is a react renderer to build UI interfaces using canvas/WebGL. React Ape was built to be an optionalReact-TV renderer. It's mainly a renderer focused on creating things for TV, PS5, PS4, Nintendo Switch, PS Vita, PS3 and low memory devices.
React Ape lets you build Canvas apps using React. React Ape uses the same design as React, letting you compose a rich UI from declarative components.
tl;dr:Crafting a high-performance TV user interface using React (and also good to read:60 FPS on the mobile web)
Crafting a high-performance TV user interface based on DOM is a real challenge, because of some reasons:
- Limited graphics acceleration
- Single core CPUs
- High Memory Usage for a common TV App
These restrictions make super responsive 60fps experiences especially tricky. The strategy is step in the renderer based on a hardware-accelerated canvas.
App Name | Github | App URL |
---|---|---|
Photo Gallery | raphamorim/react-ape-photo-gallery | Check it out |
Movie List | raphamorim/react-ape-movie-list-demo | Check it out |
Add yours here | --------- | --------- |
# NPMnpm install react-ape# Yarnyarn add react-ape
importReact,{Component}from'react';import{Text,View}from'react-ape';classReactApeComponentextendsComponent{render(){return(<View><Text> Render this text on Canvas</Text><Text> You just use React Ape components like 'View' and 'Text', just like React Native.</Text></View>);}}
React-Ape's CI usesmacos-latest
and since canvas renders a different output based on the operating system (node-canvas have rasterize fonts in different ways based on OS). It requires run the tests on the same OS. Please be aware that if you want to contribute using a different OS, make sure that you haveDocker installed.
You can follow React-Ape development status here:Roadmap
A special thanks toRaphael Eckhardt for making the logo <3