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

Added padding and borderRadius props for some more basic styling options #162

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

acealone
Copy link

@acealone acealone commented Feb 6, 2023

Please give it a good look before merging. I am pretty new to React Native and React in general.
This should theoretically add some more style options to the current ones.

@borisevstratov
Copy link

Seems like you can use containerStyle property for that, e.g.:

    Toast.show("Toast:test message", {
      duration: Toast.durations.LONG,
      position: Toast.positions.TOP,
      shadow: false,
      animation: true,
      hideOnPress: true,
      delay: 0,
      textColor: "cyan",
      containerStyle: {
        borderRadius: 25,
        padding: 50,
        backgroundColor: "red",
      },
    });

IMG_D36E821D62FC-1

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

Successfully merging this pull request may close these issues.

2 participants