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

[iOS] Opening picker immediately in ComponentDidMount some Views are missing #157

Open
ssomnoremac opened this issue May 12, 2017 · 3 comments

Comments

@ssomnoremac
Copy link
Contributor

Seems like if you are going to open the picker as the first action as a scene is rendered you should do so in ComponentDidMount. If I do that without a timeout I often lose Views. They just disappear in iOS. Not sure what to say about this. Is there are better solution that using a timeout to allow complex screens to render first?

@PFBoy
Copy link

PFBoy commented May 17, 2017

Same problem with you.
When I input something in textinput, render method will called and the tips "enter xxx characters at most" in view will be changed. Then, textinput component will lose focus, keyboard will dismiss.
Any solution now?

@ssomnoremac
Copy link
Contributor Author

I would just be careful about opening the picker when a scene renders; however, I noticed the Views disappearing even after my fix which is to say

 componentDidMount(){
        setTimeout(this._openPicker, 800)
    }

is a hack and there seems to be some issue here. Unfortunately, this being a native solution means its not so easy to track down.

@PFBoy
Copy link

PFBoy commented May 22, 2017

OK,I will try this later.
If I found any effective solution, I will be back.
Thanks so much.

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