Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

🦍• React Renderer to build UI interfaces using canvas/WebGL (TV and Hardware-Accelerated GPU development based)

License

NotificationsYou must be signed in to change notification settings

raphamorim/react-ape

Repository files navigation

React Renderer to build UI interfaces using Canvas/WebGL

DISCLAIMER: In experimental stage

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.

Understanding the Problem

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.

Examples

App NameGithubApp URL
Photo Galleryraphamorim/react-ape-photo-galleryCheck it out
Movie Listraphamorim/react-ape-movie-list-demoCheck it out
Add yours here------------------

API Usage

Install it usingNPM orYarn

# NPMnpm install react-ape# Yarnyarn add react-ape

React Ape's API usage example

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>);}}

Demo on PS Vita

Demo on PS Vita

Demo on TV

Demo on TV

Testing it

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.

Roadmap

You can follow React-Ape development status here:Roadmap

Credits

A special thanks toRaphael Eckhardt for making the logo <3

About

🦍• React Renderer to build UI interfaces using canvas/WebGL (TV and Hardware-Accelerated GPU development based)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp