Get started · 03
Build a sign-in screen, make it yours, theme it, and take an update without losing your changes. This is the whole Nativra workflow.
Blocks are composed sections. login-form needs 9 other registry items; the CLI resolves them and installs everything dependencies-first:
npx nativra-cli add login-formimport { View } from "react-native";
import { router } from "expo-router";
import { LoginForm } from "@/components/ui/LoginForm";
export default function Quickstart() {
return (
<View style={{ flex: 1, justifyContent: "center", padding: 24 }}>
<LoginForm
onSignIn={({ email, password }) => signIn(email, password)}
onForgotPassword={() => router.push("/forgot-password")}
onSignUp={() => router.push("/sign-up")}
/>
</View>
);
}Every prop is plain TypeScript in components/ui/LoginForm.tsx. Open the file to see exactly what it does.
There is no override API to learn. Edit the file; it is your code now:
<Text variant="h2" className="text-center mb-1">
- Welcome back
+ Sign in to Acme
</Text>Your components use the default zinc theme. Replace it to restyle all of them at once. --apply-css also updates the CSS variables NativeWind reads:
npx nativra-cli theme add midnight --overwrite --apply-cssBrowse the palettes in Themes.
When the registry improves a component, first see how your copy differs:
npx nativra-cli diff login-formThen update. The file you edited in step 3 is skipped, and every file that does change is backed up first:
npx nativra-cli update ✓ Updated components/ui/Button.tsx
! components/ui/LoginForm.tsx has local changes — skipped (use --force, or 'nativra diff login-form')Changed your mind? Restore the previous version of an item:
npx nativra-cli rollback buttonadd copies an item and its dependencies, and hashes every file into nativra.lock.json.diff, update and rollback let you take upstream fixes and keep your changes.