UIR

Introduction

Beautifully animated React Native components that you copy into your Expo app. Open code. Yours to change.

UIR (Ui by Rabiat) is not a component library in the usual sense. You don't install it as a dependency and import from node_modules. Instead, the CLI copies each component's source file into your project. From then on it's your code: tweak the springs, change the colours, rip out what you don't need.

This is the same idea as shadcn/ui, brought to React Native and focused on motion.

How it works

  1. init sets up your Expo app: it writes a uir.json config and installs Reanimated, Gesture Handler, Worklets and SVG.
  2. add copies a component into your components folder and installs anything extra it needs.
  3. You import it like any other file in your app.

Principles

  • One file per component. Each component only imports libraries, never other files, so it can be copied anywhere.
  • Data in, events out. Content comes in through props and changes come back through callbacks like onChange.
  • Sized by its parent. Full-screen components measure the view they're placed in, so they work in a whole screen or a small card.
  • UI-thread animation. Gestures and animations run as Reanimated worklets.

FAQ

Does it work without Expo?

The components are plain React Native and will work in bare apps that have the same dependencies. The CLI targets Expo because it uses expo install to pick compatible versions. See Manual installation.

Does it work in Expo Go?

Yes. Every dependency UIR uses (Reanimated, Gesture Handler, Worklets, SVG, Haptics) ships with Expo Go.