Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keyboard driver and a more declarative RN. #7

Open
aronallen opened this issue May 17, 2016 · 2 comments
Open

keyboard driver and a more declarative RN. #7

aronallen opened this issue May 17, 2016 · 2 comments

Comments

@aronallen
Copy link

Working with React Native, I find the most terrible thing that you don't have direct control of the keyboard.
It could be cool with a declarative Keyboard driver, where one could attach toolbar elements, etc. It would be hard to handle in pure React Native, since there is really only 'one' driver (the vdom). But Cycle's architecture could handle having a View driver, and a Keyboard driver. Further more it could be cool to have a more purely declarative View driver, something akin to snabdomm for native. Then we can't piggyback on React Native, but I honestly don't find RN declarative enough. I imagine making our own bindings would be quite an undertaking, but it seems the driver architecture of Cycle is much better suited abstraction for native development, especially because there are multiple views (virtual keyboard, vdom). Any input on these ideas?

@staltz
Copy link
Member

staltz commented May 17, 2016

Totally agree on this. For instance that's exactly what happens in this example: https://github.com/cyclejs/examples/blob/master/animated-letters/src/main.js#L100-L112
There is still View and Intent, but one has absolutely nothing to do with the other.

@aronallen
Copy link
Author

the difference being that a native keyboard driver would expect a source of keyboard declaration, and emit a stream of keyboard actions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants