twlevelup / watch_edition_react

A smartwatch simulator, built in ReactJS
MIT License
3 stars 2 forks source link

Watch frakework spike -- Don't Merge #19

Closed aaron-m-edwards closed 6 years ago

aaron-m-edwards commented 7 years ago

Pull Request is more to review the spike

Still WIP

The intention of this spike it to have an alternate API option than we have in master

I have focused mainly on creating a simple(ish) API for students to quickly create pages

25/07 - I believe I now have feature parity with master couple of things to note

26/7 - I was up all night spiking out yet another solution that looks quite nice. Basically we require the students to create their screens with onLeftButton(), onRightButton() etc on their Screen components. We can then use a ref call to access the instance of the screen when one of the buttons is pressed and dispatch to the correct method.

I have a demo working locally, however I 100% ignored tests so it will fail builds etc if I push it up 😁 If you do want a look I can push up the first cut