UNPKG

rnr-starter

Version:

A comprehensive React Native Expo boilerplate with 50+ modern UI components, dark/light themes, i18n, state management, and production-ready architecture

14 lines (11 loc) 316 B
import { create } from 'zustand'; interface ErrorStore { error: string | null; setError: (error: string | null) => void; clearError: () => void; } export const useErrorStore = create<ErrorStore>((set) => ({ error: null, setError: (error) => set({ error }), clearError: () => set({ error: null }), }));