https://github.com/alloc/nativ-template
https://github.com/alloc/nativ-template
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/alloc/nativ-template
- Owner: alloc
- Created: 2025-08-21T00:40:21.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-08-28T18:48:42.000Z (5 months ago)
- Last Synced: 2025-08-29T00:55:26.301Z (5 months ago)
- Language: TypeScript
- Size: 747 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# My Nativ App
A React Native app built with [Nativ](https://github.com/alloc/nativ), Expo, and modern tooling.
## Project Structure
```
├── assets/ # Fonts, icons, images, sounds
├── src/
│ ├── app/ # Expo Router pages
│ ├── core/ # Core application files
│ │ ├── theme.ts # Restyle theme
│ │ └── ui.ts # UI primitives
│ └── db/ # Drizzle ORM setup
├── app.config.ts # Expo configuration
├── drizzle.config.ts # Database configuration
└── tsconfig.json # TypeScript configuration
```
## Customization
### Theme
Edit `src/core/theme.ts` to customize colors, spacing, and typography.
```ts
// Import the theme type:
import type { Theme } from '~/theme'
```
### UI Components
UI primitives are exported from `src/core/ui.ts` using the nativ library.
```ts
// Import UI primitives:
import { Button, View, Text } from '~/ui'
```
### Database
- Schema: `~/db/schema`
- Client: `~/db/client`
- Migrations: `~/db/migrations`
### Assets
- **Icons**: Add to `assets/icons/`
- **Images**: Add to `assets/images/`
- **Fonts**: Add to `assets/fonts/` and `app.config.ts`
## Learn More
- [Nativ Documentation](https://github.com/alloc/nativ)
- [Expo Documentation](https://docs.expo.dev/)
- [Restyle Documentation](https://github.com/alloc/restyle)
- [Drizzle Documentation](https://orm.drizzle.team/)