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

[BUG]: dynamicHeight confusion #165

Open
McCulloughRT opened this issue Jul 18, 2024 · 2 comments
Open

[BUG]: dynamicHeight confusion #165

McCulloughRT opened this issue Jul 18, 2024 · 2 comments

Comments

@McCulloughRT
Copy link

McCulloughRT commented Jul 18, 2024

Describe the bug
Setting dynamicHeight: true in useEditorBridge does not seem to have the intended effect, but it's very possible I'm not using it correctly. Is there an example somewhere of how it should be used?

To Reproduce
Follow the "Basic Example" from the docs, but give the enclosing View a background color so you can see if it's covered. Set the dynamicHeight option to true. The rendered page will show the editor still takes up the full (safe) height of the screen.

Expected behavior
I would expect the editor to have a height based on content that grows vertically as the content grows (in size or lines)

@dlayton66
Copy link

I have the same issue, and it was working fine until I updated from 0.5.12 to 0.5.13 today. Looks like they changed something in dynamic height with the latest version. I don't know what the fix is, but just giving you a heads up that I don't think it's on our end.

@GuySerfaty
Copy link
Contributor

GuySerfaty commented Jul 22, 2024

Hi, for now the dynamic height is working only when the rich text is inside the KeyboardAvoidingView component:

Screen.Recording.2024-07-22.at.18.42.45.mov

We will fix it in the next release

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

3 participants