Panza is a simple, flexible, and beautiful ui foundation for react-native and react-native-web, created by Ben McMahen and Hammad Jutt. Essentially, it’s the Bootstrap of react-native.
Panza gives you:
- The standard building blocks of most mobile applications.
- Beautiful UI-styles out of the box, suitable for iOS, Android, and the web.
- A method for theming your application.
- A Base and Text component, which provide useful shorthand prop to style conversions. For example, use
p={2}
to provide padding, orbackgroundColor='primary'
to provide a background colour. Most UI-components composeBase
, and thus accept these props.
So instead of doing this:
|
|
You can do this:
|
|
Installation
Install using NPM.
|
|
And import your components.
|
|
Themes
You can override parts of the global theme to provide custom colours, font sizes, scales, etc. Use the customizeTheme function provided by Panza to supply a custom theme before registering your application. Check out the default config to see which variables you can override.
|
|
Examples
- UIExplorer
- bRandom - Randomize your routine (GitHub, App Store)
- Roast Buddy
Built something with Panza? Let us know!
Contributing
If you are interested in working on Panza and want to develop it locally within a react-native project, we recommend using wml to directly copy your local panza
directory into your node_modules
folder inside of your react-native project. This is the best solution until react-native fully support symlinks.
|
|
To run the tests:
License
MIT