Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

feat: Add toast #618

Merged
merged 2 commits into from
Dec 21, 2021
Merged

feat: Add toast #618

merged 2 commits into from
Dec 21, 2021

Conversation

intergalacticspacehighway
Copy link
Collaborator

Why

How

  • Mounts toast content into ToastProvider. We can also pass a react element in the toast to customise further.
  • Currently, it can only show one toast at a time, which is sufficient in most cases. We can later improve it to handle multiple toasts. Didn't want to spend too much time on it so early.

Test Plan

  • Run toast react native stories in android/iOS and web.
Screen.Recording.2021-12-21.at.10.40.26.PM.mov

@vercel
Copy link

vercel bot commented Dec 21, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/showtime/showtime/BSsMRs9yR2UKZdRKYgr9wRWpiHqj
✅ Preview: https://showtime-git-toast-showtime.vercel.app

@github-actions
Copy link

github-actions bot commented Dec 21, 2021

PR Preview

This pull request preview deployment is now available.

✅ Preview: io.showtime.development://expo-development-client/?url=https://exp.host/@tryshowtime/showtime/index.exp?release-channel=pr-618&sdkVersion=44.0.0

Comment ID: 998958350

@axeldelafosse axeldelafosse self-requested a review December 21, 2021 17:26
Copy link
Contributor

@axeldelafosse axeldelafosse left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants