question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Announcing React-RETINA (<canvas> for React v15 & also Preact compatible, and supports variable sized ListView)

See original GitHub issue

This library is an alternative Canvas implementation for React v15 (which react-canvas has not yet been updated to use). It is also compatible with Preact.

https://github.com/xphung/react-retina

Features:

  1. Gallery component supports variable sized pages (whereas react-canvas ListView is limited to fixed size pages)
  2. React-RETINA only uses standard/public React APIs.
  3. The React Retina design avoids numerous React v15 anti-patterns (which React Canvas/React ART are guilty of using). There are no mixins, string Refs, or even Contexts. It does not use non standard lifecycle methods.
  4. The React RETINA component library source code is much easier to understand as a result and is leaner and cleaner.
  5. The View base component is extremely lightweight and specialised components (Image, Text, etc) are built on top of View via a custom draw callback. This is very flexible and allows virtually any drawable shape or component to be built on top of View.
  6. The React RETINA Backing Store implementation is simpler and cleaner to use - instead of requiring specialised hooks/lifecycle to manage invalidation and repaints, just assign a unique ID to the useBackingStore property to make the View the cache a repaint. Simply assign a new ID whenever an invalidation and repaint into Backing Store is required … no need for a special Javascript calls or API to invalidate cache data!
  7. Keyboard events are supported!!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
SalahAdDincommented, Sep 15, 2017

@xphung Are you still working in it?

0reactions
dolebascommented, Nov 20, 2017

@xphung Impressed and intrigued by the concept of React-RETINA as well as react-canvas. Do you know of any sites using this lib in production yet?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Flipboard
This library is an alternative Canvas implementation for React v15 (which react-canvas has not yet been updated to use). It is also compatible...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found