Skip to content

On Android, the layout and style for types are broken #302

Open
@shettayyy

Description

@shettayyy

Describe the bug
On Android, the layout and styles are broken. I have added the screenshot for better clarity. This issue doesn't persist on iOS.

Steps to reproduce
Steps to reproduce the behavior:

  1. Install the latest version of react-native-toast-message
  2. Place the <Toast /> in the root after NavigationContainer as mentioned in the doc.
  3. Call toast.show({ type: 'success', text1: 'OOPS!', text2: 'Grave mistake' , position: 'bottom', autoHide: true }) as shown in the documentation

Expected behavior
The layout and style for all types seen on iOS should match with Android.

Screenshots
Screenshot 2021-12-22 at 18 36 32

Code sample
Please refer to Steps to reproduce

Environment (please complete the following information):

  • OS: Android - Nexus One API 28
  • react-native-toast-message version: 2.1.1
  • react-native version 0.66.4

Additional context
This occurs only on Android

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions