toastify-react-native icon indicating copy to clipboard operation
toastify-react-native copied to clipboard

Hide progress bar

Open jduhking opened this issue 2 years ago • 4 comments

Is there any way to remove the status bar?

jduhking avatar Dec 10 '23 18:12 jduhking

@jduhking not yet.

zahidalidev avatar Dec 10 '23 23:12 zahidalidev

@jduhking not yet.

I see, how hard do you think it would be to add an option to hide it?

jduhking avatar Dec 11 '23 02:12 jduhking

@jduhking I don't think it will be difficult, we need to add the prop and based on that we can conditionally render the progress bar.

zahidalidev avatar Dec 11 '23 17:12 zahidalidev

I had the same question, but then I found setting duration to 0 worked out.

nico-gao avatar Jan 17 '24 19:01 nico-gao

The feature is added in this PR — https://github.com/zahidalidev/toastify-react-native/pull/37 (merged).

To hide the progress bar use it like this:

<ToastManager
  showProgressBar={false}
/>

We are currently waiting for a new npm version that will contain the changes.

Zrna avatar Sep 12 '24 15:09 Zrna

The feature is available in the >5.0.1 versions.

Zrna avatar Sep 17 '24 10:09 Zrna