Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): share toast motion and bring bottom undo to iOS #23968

MergedPixPMusic(GitHub profile, opens in a new tab)merged 15 commits intomain fromrefs/pull/23968/headmerged by juliusmarminge View on GitHub

Showing 6 changed files with 170 additions and 17 deletions (loading 4).

x
0 of 6 viewed, 6 left
3 additions and 2 deletionsapps/mobile/src/components/ui/GlassSurface.tsxModified
View file
@@ -25,7 +25,8 @@
readonly ref?: Ref<ViewInstance>;
readonly children: ReactNode;
readonly glassEffectStyle?: "clear" | "regular" | "none";
- readonly tintColor?: ColorValue;
+ // null leaves UIKit's material untinted instead of applying the theme tint.
+ readonly tintColor?: ColorValue | null;
readonly tintColorClassName?: string;
readonly chrome?: "default" | "none";
readonly fallbackColor?: ColorValue;
@@ -71,7 +72,7 @@
className,
)}
glassEffectStyle={glassEffectStyle}
- tintColor={tintColor === undefined ? undefined : String(tintColor)}
+ tintColor={tintColor == null ? undefined : String(tintColor)}
tintColorClassName={
tintColorClassName ?? (tintColor === undefined ? "accent-glass-tint" : undefined)
167 additions and 15 deletionsapps/mobile/src/components/ui/Toast.tsxModified
View file
@@ -1,37 +1,72 @@
-import { MOBILE_SHAPE } from "../../lib/designTokens";
-import { useEffect } from "react";
-import { AccessibilityInfo, Platform, View, useWindowDimensions } from "react-native";
+import { MOBILE_MOTION, MOBILE_SHAPE } from "../../lib/designTokens";
+import { useCallback, useEffect, useLayoutEffect, useMemo, useState } from "react";
+import { AccessibilityInfo, Platform, StyleSheet, View, useWindowDimensions } from "react-native";