- Add design tokens (colors, radii, typography) mirroring DESIGN.md's "Spotlight Porch" system, plus Button/TextField/Card components built on them. Restyle the sign-in and placeholder home screens to match. - Load Inter via @expo-google-fonts/inter, gate rendering on fonts + Clerk being ready instead of a blank screen. - Pin react-dom to match react's version — Metro/Hermes hard-require exact equality, and react-dom wasn't pinned anywhere before. - Handle Clerk's `needs_client_trust` status (Device Trust, tied to the dashboard's Native Applications API): send/verify an email code before finalizing sign-in. Verified end-to-end in the Android emulator against the live backend: sign-in, device-trust code verification, and the home screen showing real stats.getPublicStats data.
22 lines
613 B
TypeScript
22 lines
613 B
TypeScript
import { View, StyleSheet, type ViewProps } from "react-native";
|
|
import { colors, radii, spacing } from "../theme/tokens";
|
|
|
|
/**
|
|
* Mirrors the web app's card token (DESIGN.md): pure-white surface,
|
|
* rounded-xl, defined by a hairline ring rather than a resting shadow.
|
|
*/
|
|
export function Card({ style, ...rest }: ViewProps) {
|
|
return <View style={[styles.card, style]} {...rest} />;
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
card: {
|
|
backgroundColor: colors.pureWhite,
|
|
borderRadius: radii.xl,
|
|
borderWidth: 1,
|
|
borderColor: colors.hairlineGray,
|
|
padding: spacing.cardDefault,
|
|
gap: 4,
|
|
},
|
|
});
|