Skip to content

OnDeviceUI causes stories to inherit SafeAreaView and KeyboardAvoidingViewΒ #64

@lidio601

Description

@lidio601

When testing simple UI components it's all good.

The problem comes when you're testing a full-screen story like this one:

as you can see by specifying {onDeviceUI: true} the vertical space is reduced because of the SafeAreaView inherited by the OnDeviceUI component.

Furthermore, our Screen component is already considering the SafeAreaView insets and providing its own KeyboardAvoidingView instance so this double KeyboardAvoidingView could create also functionality issues.

If I specify {onDeviceUI: false} the problem is solved:

Having the OnDeviceUI helps non-developers to review components even testing on an actual app release.

I think the solution would be to have the OnDeviceUI to be an actual overlay on top of the StoryView instead of wrapping all the stories

What do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions