Skip to content
项目

关于

🍞 Smooth morphing toasts for React Native

网站与应用开发

这些数字如何统计

实测星标增长

24小时
0
7天
+2
15天
+3
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

README.md

原文
Toastiva

Toastiva

Morphing toast notifications for React Native.
iOS and Android.

npm version npm downloads MIT license platforms



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

探索相关项目

加载中…