Skip to main content

React Native Integration & Best Practices: UI Abstractions

Primitive Abstraction

To create a consistent look and feel across platforms and to simplify development, we use a primitive abstraction layer. This involves creating a set of base components (e.g., View, Text, Button) that are styled and configured to match our design system. This approach allows us to reuse these primitives across different applications and platforms, ensuring a consistent user experience.

Styling with react-native-unistyles

We use react-native-unistyles for styling our React Native components. react-native-unistyles is a styling library that provides a set of utilities for creating and managing styles. It also supports theming, which allows you to easily change the look and feel of your application.

To use react-native-unistyles, you need to configure it in your babel.config.js file and in your application's entry point. For more information, please refer to the official documentation.