项目
在 GitHub 查看
rit3zh/toastiva
关于
🍞 Smooth morphing toasts for React Native
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- +2
- 15天
- +3
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Install
npx expo install react-native-gesture-handler react-native-reanimated react-native-worklets react-native-safe-area-context react-native-svg expo-blur
npm install toastiva
Android needs React Native 0.76+ with the New Architecture for the blur header.
Below that, toasts still render, just without the blur layer. iOS uses
expo-blur and is unaffected. Not built for React Native Web.
Quick start
import { GestureHandlerRootView } from "react-native-gesture-handler";
import { SafeAreaProvider } from "react-native-safe-area-context";
import { ToastivaProvider, toastiva } from "toastiva";
export default function App() {
return (
<GestureHandlerRootView style={{ flex: 1 }}>
<SafeAreaProvider>
<ToastivaProvider position="top-center">
<RootNavigator />
</ToastivaProvider>
</SafeAreaProvider>
</GestureHandlerRootView>
);
}
toastiva.success("Saved", { description: "Your changes are ready." });
Docs
Installation · Usage · Styling · Animations · API reference
Layout inspired by sileo.aaryan.design.
MIT © Ritesh
探索相关项目
加载中…
