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

doesn't work with TextInput #3

Open
mvayngrib opened this issue Nov 4, 2016 · 1 comment
Open

doesn't work with TextInput #3

mvayngrib opened this issue Nov 4, 2016 · 1 comment

Comments

@mvayngrib
Copy link

[reposted from my comment on your disqus blog entry]

first of all, very cool module! I ran into an edge case with TextInput. Focus replicates to a second device, but typing doesn't. Here's a minimal example: https://github.com/mvayngrib/mktest

could you take a look? Thanks!

@axemclion
Copy link
Member

Hey,

Thanks a lot for reporting the issue. I finally got around to poking at it (sorry for the super late response) and here is what I found. Looks like the actual state is indeed propagated - if you add a <Text>{this.state.text}</Text> in the render method, you will notice that when you type on one device, the change is reflected in the other.

The problem seems to only occur when the state tries to bind its value and update the rendered <TextInput> native component. I also noticed that this works well on Android. In fact, when I type on iOS, the Android part does update. The issue seems to be only on iOS.

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