Brownie
Alpha
Brownie is in alpha stage. APIs may change.
Brownie is a shared state management library for React Native brownfield apps. It enables seamless state synchronization between your React Native code and native code.
Features
- Shared State - Single source of truth accessible from both TypeScript and Swift
- Type Safety - Full type inference from TypeScript schema to generated Swift types
- React Integration -
useStorehook with selector support for optimal re-renders - SwiftUI Integration -
@UseStoreproperty wrapper for reactive UI updates - UIKit Support - Subscribe-based API for imperative UI updates
Platform Support
How It Works
- Define your store shape in a
*.brownie.tsfile using TypeScript - Run
brownfield codegento generate native types - Use
useStorein React Native and@UseStorein Swift - State changes sync automatically between both sides
Next Steps
- Getting Started - Step-by-step setup guide
- Defining Stores - Learn how to define your store schema
- Code Generation - Configure and run the codegen CLI
- TypeScript Usage - Use stores in React Native
- Swift Usage - Use stores in iOS apps
