You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I use EditText, I need a function to tell js how many numbers before cursor:
In iOS, i can use @ReactMethod to give JS a callback in ReactTextInputManager cause ViewManager is a Module
In Android, js invoke ViewManager's method by override getCommandsMap() and receiveCommand() in custom ViewManager. The problem is this way can't pass a callback. So the solution is I use a JavaScriptModule, like RCTEventEmitter, to invoke js.
Is there a better solution to figure it out? Why android and iOS designed differently?
The text was updated successfully, but these errors were encountered:
React Native, as you've probably heard, is getting really popular and truth is we're getting a bit overwhelmed by the activity surrounding it. There are just too many issues for us to manage properly.
If you don't know how to do something or something is not working as you expect but not sure it's a bug, please ask on StackOverflow with the tag react-native or for more real time interactions, ask on Discord in the #react-native channel.
If this is a feature request or a bug that you would like to be fixed, please report it on Product Pains. It has a ranking feature that lets us focus on the most important issues the community is experiencing.
We welcome clear issues and PRs that are ready for in-depth discussion. Please provide screenshots where appropriate and always mention the version of React Native you're using. Thank you for your contributions!
ProductPains helps the community prioritize the most important issues thanks to its voting feature.
It is easy to use - just login with GitHub.
Also, if this issue is a bug, please consider sending a PR with a fix.
We're a small team and rely on the community for bug fixes of issues that don't affect fb apps.
When I use EditText, I need a function to tell js how many numbers before cursor:
Is there a better solution to figure it out? Why android and iOS designed differently?
The text was updated successfully, but these errors were encountered: