Introduction to Unistyles
mainUnistyles is a cross-platform styling library for React Native that allows you to share up to 100% of your styles across all platforms. It acts as a superset of the standard React Native StyleSheet, providing enhanced capabilities while maintaining a familiar API.
Key features include:
- Performance: Uses pure JSI bindings and C++ to guarantee no re-renders across the app without relying on hooks or context.
- Compatibility: Does not pollute the native view hierarchy, allowing it to be used with any component.
- Consistency: Includes a cross-platform parser written in C++ for consistent output.
- Type Safety: Leverages Nitro Modules for strongly typed operations.
- Enhanced Stylesheets: Transforms standard
StyleSheetsinto enhanced versions that can access themes and platform-specific values.