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
I have added an extra counter page to demonstrate page state (scoped to each watch screen)
Some of the naming of components need to be changed (and some old ones need to be removed)
I am unsure the best way to test the actions that are passed to each page, may have to resort to either a big page render, or creating some custom page matchers to help the students
A notification will currently kill the current page state (although I believe the version in master could have the same issue)
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
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