This boilerplate does not maintain a separate internal component library. Most shared UI should be imported from @sohantalukder/rn-kit, while feature-specific composition stays inside each module.
Use RN Kit wrappers and theme helpers for app screens.
Build common interactions with theme-aware primitives.
Render images and local SVG icons through the kit.
Use the portal-backed overlay helpers for global feedback.
Import RN Kit primitives directly and compose feature UI from those building blocks.
import {
Button,
Card,
Image,
ScreenContainer,
Text,
} from '@sohantalukder/rn-kit';
export function ProfileSummary() {
return (
<ScreenContainer>
<Card variant="elevated" padding={20}>
<Image
source={{ uri: 'https://example.com/avatar.png' }}
style={{ width: 64, height: 64, borderRadius: 32 }}
/>
<Text variant="heading2" weight="bold">
Sohan Talukder
</Text>
<Button text="Continue" onPress={() => undefined} />
</Card>
</ScreenContainer>
);
}IconByVariant and useTheme keep feature components aligned with the active design system.
import {
Button,
IconByVariant,
Text,
useTheme,
} from '@sohantalukder/rn-kit';
import { View } from 'react-native';
export function FeatureAction() {
const { colors, gutters, layout } = useTheme();
return (
<View style={[layout.row, layout.itemsCenter, gutters.gap_16]}>
<IconByVariant path="send" stroke={colors.text} />
<Text variant="body1">API integration</Text>
<Button text="Fetch user" icon="send" onPress={() => undefined} />
</View>
);
}Add UiPortalProvider at the root, then call RN Kit overlay helpers from controllers or action handlers.
import { toast } from '@sohantalukder/rn-kit';
toast.show({
type: 'success',
title: 'Profile updated',
});
toast.show({
type: 'error',
title: 'Something went wrong',
});The example module follows this pattern: RN Kit primitives, module components for repeated JSX, services for API calls, and controller hooks for screen behavior.
src/modules/example/ ├── components/ # Feature-specific composition ├── constants/ # Static feature lists and labels ├── hooks/ # Controller + TanStack Query hooks ├── services/ # API service calls ├── types/ # Feature types └── Example.tsx # Screen composition only
The RN Kit website is the canonical source for component props, theme APIs, overlay helpers, and usage examples.
Visit RN Kit Website