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

WebView is focused and keyboard is shown automatically on iOS #304

Closed
kjparkdavid opened this issue Mar 15, 2023 · 5 comments
Closed

WebView is focused and keyboard is shown automatically on iOS #304

kjparkdavid opened this issue Mar 15, 2023 · 5 comments

Comments

@kjparkdavid
Copy link

When opening a screen with <RichEditor />, the keyboard is shown and the WebView is focused automatically on iOS, but not on Android.

I have tried adding initialFocus={false} with the same result.
Is there a way to not automatically focus on the editor on iOS?

@manosKas
Copy link

trying to solve this too

stulip added a commit that referenced this issue Mar 31, 2023
1. #304
2. update examples to typescript
@stulip
Copy link
Member

stulip commented Mar 31, 2023

Fixed 'initialFocus={false}' not taking effect
please update 1.8.9

@stulip stulip closed this as completed Mar 31, 2023
@Letty
Copy link

Letty commented Apr 3, 2023

There is one thing with the default properties now. You set the initialFocus in RichEditor.js to false and in editor.js to true. Which is a conflict. Isn't it better to set the prop in RichEditor.js to true as well?

@stulip
Copy link
Member

stulip commented Apr 3, 2023

@Letty Thank you very much.I haven't maintained it for a year, and Example has been upgraded to the latest RN version in a hurry.I ignored some problems when changing this problem

@Letty
Copy link

Letty commented Apr 3, 2023

No worries :) I just noticed it, because i added the changes to my fork. (Which is an attempt to rewrite it as a functional component in typescript.)

fantasticAstro pushed a commit to fantasticAstro/react-native-rich-editor that referenced this issue Jun 6, 2023
1. wxik/react-native-rich-editor#304
2. update examples to typescript
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

4 participants