{"id":21673994,"url":"https://github.com/ianhenrydev/preem-ui","last_synced_at":"2026-05-13T05:43:55.284Z","repository":{"id":65524255,"uuid":"588657766","full_name":"ianhenrydev/preem-ui","owner":"ianhenrydev","description":"UI components for React Native that support custom theming","archived":false,"fork":false,"pushed_at":"2023-02-13T18:23:39.000Z","size":167,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-15T18:06:12.639Z","etag":null,"topics":["react-native","styled-components","theme"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ianhenrydev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-13T17:00:51.000Z","updated_at":"2023-02-13T18:24:59.000Z","dependencies_parsed_at":"2024-11-25T16:02:47.862Z","dependency_job_id":null,"html_url":"https://github.com/ianhenrydev/preem-ui","commit_stats":null,"previous_names":["quadreactorllc/preem-ui"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhenrydev%2Fpreem-ui","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhenrydev%2Fpreem-ui/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhenrydev%2Fpreem-ui/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ianhenrydev%2Fpreem-ui/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ianhenrydev","download_url":"https://codeload.github.com/ianhenrydev/preem-ui/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244583162,"owners_count":20476233,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["react-native","styled-components","theme"],"created_at":"2024-11-25T13:42:26.792Z","updated_at":"2026-05-13T05:43:55.249Z","avatar_url":"https://github.com/ianhenrydev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# preem-ui\n\n[![npm](https://img.shields.io/npm/v/preem-ui.svg)](https://www.npmjs.com/package/preem-ui)\n\nUI components for React Native that support custom theming.\n\n## Installation\n\nInstall the library using yarn:\n\n`yarn add preem-ui`\n\nOr npm:\n\n`npm install --save preem-ui`\n\n## Setting up your theme\n\nNext, wrap your app in a PreemThemeProvider. This allows you specify a common theme for all UI components to use.\n\n```typescript\nimport { PreemTheme, PreemThemeProvider } from 'preem-ui'\n\nconst theme: PreemTheme = {\n  dark: true,\n  colors: {\n    primary: 'green',\n    background: '#212121',\n    card: '#2f2f2f',\n    text: '#fff',\n    border: '#282828',\n    notification: '#ff6600',\n  },\n}\n\nexport default function App() {\n  return \u003cPreemThemeProvider theme={theme}\u003e{/* Rest of your app code */}\u003c/PreemThemeProvider\u003e\n}\n```\n\n## Usage with `react-navigation`\n\nThis library is designed to work with `react-navigation`. Just pass your custom `PreemTheme` as a prop when you create your `NavigationContainer`.\n\n`\u003cNavigationContainer theme={theme}\u003e`\n\n## Components\n\n| Component      | Description                                                                        |\n| -------------- | ---------------------------------------------------------------------------------- |\n| Button         | Custom `TouchableOpacity` styled as a simple button.                               |\n| Card           | `View` styled to look like a card.                                                 |\n| CardList       | Responsive list of cards.                                                          |\n| Fab            | Floating action button absolutely positioned in a corner.                          |\n| Header         | Simple header text to appear at the top of a screen.                               |\n| InnerContainer | View that is locked to a max width.                                                |\n| Label          | Styled text to be used in combination with Inputs.                                 |\n| Loading        | Centered loading spinner.                                                          |\n| OuterContainer | Main container for screens. Supports scrolling and accounts for status bar height. |\n| TabBar         | Toggle selector for a small number of items.                                       |\n| Table          | Scrollable and sortable table.                                                     |\n| Text           | Styled `Text`.                                                                     |\n| TextInput      | Styled `TextInput`.                                                                |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianhenrydev%2Fpreem-ui","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fianhenrydev%2Fpreem-ui","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fianhenrydev%2Fpreem-ui/lists"}