{"id":20380516,"url":"https://github.com/tobua/naxos","last_synced_at":"2026-05-06T15:32:09.352Z","repository":{"id":48725156,"uuid":"415648350","full_name":"tobua/naxos","owner":"tobua","description":"React Native UI Library","archived":false,"fork":false,"pushed_at":"2023-12-10T13:42:52.000Z","size":975,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-15T09:37:24.148Z","etag":null,"topics":["library","react-native","ui","ui-components"],"latest_commit_sha":null,"homepage":"https://npmjs.com/naxos","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tobua.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-10-10T17:04:04.000Z","updated_at":"2022-05-28T17:11:36.000Z","dependencies_parsed_at":"2025-01-15T06:49:04.913Z","dependency_job_id":"8e89bfca-f9f5-48b2-8136-a21d61af0a73","html_url":"https://github.com/tobua/naxos","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fnaxos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fnaxos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fnaxos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tobua%2Fnaxos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tobua","download_url":"https://codeload.github.com/tobua/naxos/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241929752,"owners_count":20044019,"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":["library","react-native","ui","ui-components"],"created_at":"2024-11-15T02:07:40.004Z","updated_at":"2026-05-06T15:32:09.299Z","avatar_url":"https://github.com/tobua.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://github.com/tobua/naxos/raw/main/video.gif\" alt=\"naxos Preview\" width=\"195\"\u003e\n\u003c/p\u003e\n\n# naxos\n\n\u003cimg align=\"right\" src=\"https://github.com/tobua/naxos/raw/main/logo.png\" width=\"20%\" alt=\"naxos\" /\u003e\n\n[![npm](https://img.shields.io/npm/v/naxos)](https://npmjs.com/naxos)\n[![codesandbox](https://img.shields.io/badge/demo-codesandbox-yellow)](https://codesandbox.io/s/naxos-web-ypb2ny)\n\nReact Native UI components library.\n\n- NavBar, TabBar\n- Button, Text, Input, Dropdown, Content\n- Icon, Avatar\n- Intro, Tabs, AbsoluteButton\n\n## Installation\n\n```\nnpm i naxos\n```\n\n## Usage\n\n```jsx\nimport React from 'react'\nimport { AppRegistry, SafeAreaView, ScrollView } from 'react-native'\nimport { NavBar, TabBar, Text, Content } from 'naxos'\n\nconst App = () =\u003e (\n  \u003cSafeAreaView style={{ flex: 1 }}\u003e\n    \u003cNavBar title=\"naxos\" /\u003e\n    \u003cScrollView\u003e\n      \u003cContent\u003e\n        \u003cText large bold\u003e\n          React Native UI Library\n        \u003c/Text\u003e\n      \u003c/Content\u003e\n    \u003c/ScrollView\u003e\n    \u003cTabBar\u003e\n      \u003cTabBar.Tab key=\"home\"\u003e\n        \u003cText\u003eHome\u003c/Text\u003e\n      \u003c/TabBar.Tab\u003e\n      \u003cTabBar.Tab key=\"profile\"\u003e\n        \u003cText\u003eProfile\u003c/Text\u003e\n      \u003c/TabBar.Tab\u003e\n    \u003c/TabBar\u003e\n  \u003c/SafeAreaView\u003e\n)\n\nAppRegistry.registerComponent('naxos', () =\u003e App)\n```\n\n## Components\n\n### `NavBar`\n\n```jsx\nimport { NavBar, Button, Text, Avatar } from 'naxos'\n\nconst Navigation = (\n  \u003cNavBar\u003e\n    \u003cButton key=\"left\" onPress={back}\u003e\n      Back\n    \u003c/Button\u003e\n    \u003cText key=\"middle\"\u003enaxos\u003c/Text\u003e\n    \u003cAvatar key=\"right\" onPress={go('Profile')} image={userImage} /\u003e\n  \u003c/NavBar\u003e\n)\n```\n\nThe `key` property is required on the root child to indicate the desired position. It can also be placed on a `Fragment` or a `View` wrapping multiple other elements.\n\n### `TabBar`\n\n```jsx\nimport { TabBar } from 'naxos'\n\nconst Tab = ({ label, active }) =\u003e (\n  \u003cTabBar.Tab\u003e\n    \u003cText bold={active}\u003e{label}\u003c/Text\u003e\n  \u003c/TabBar.Tab\u003e\n)\n\nconst tabBar = (\n  \u003cTabBar onPress={(key) =\u003e console.log(key)}\u003e\n    \u003cTab key=\"home\" label=\"Home\" /\u003e\n    \u003cTab key=\"trending\" label=\"Trending\" /\u003e\n    \u003cTab key=\"about\" label=\"About\" /\u003e\n  \u003c/TabBar\u003e\n)\n```\n\n### `Button`\n\nBy default the button will appear as text in the `Color.interact` color to indicate a possible action.\n\n```jsx\nconst textButton = \u003cButton title=\"Click me\" onPress={() =\u003e alert('clicked')} /\u003e\nconst customButton = (\n  \u003cButton onPress={() =\u003e alert('clicked')}\u003e\n    \u003cText\u003eCustom button content\u003c/Text\u003e\n  \u003c/Button\u003e\n)\n```\n\n### `Text`\n\n```jsx\nconst regularText = \u003cText\u003eRegular text.\u003c/Text\u003e\nconst largeText = \u003cText large\u003eHello title.\u003c/Text\u003e\nconst boldText = \u003cText bold\u003eBold and important text.\u003c/Text\u003e\n```\n\n### `Input`\n\n```jsx\nimport { Input } from 'naxos'\n\nconst regularInput = \u003cInput placeholder=\"Enter text...\" /\u003e\n```\n\n### `Dropdown`\n\n```jsx\nimport { Dropdown } from 'naxos'\n\nconst simpleDropdown = (\n  \u003cDropdown options={['Home', 'Profile', 'About']} onChange={(option) =\u003e alert(option)} /\u003e\n)\n```\n\n### `Content`\n\nWraps content with `Space.medium` to the side and `Space.small` for top and bottom.\n\n```jsx\nimport { Content, Button } from 'naxos'\n\nconst WrappedButton = (\n  \u003cContent\u003e\n    \u003cButton title=\"Hello\" onPress={() =\u003e alert('Hello World')} /\u003e\n  \u003c/Content\u003e\n)\n```\n\n### `Icon`\n\n```jsx\nimport { Icon } from 'naxos'\n\nconst backPointer = \u003cIcon name=\"pointer\" direction=\"left\" /\u003e\nconst hamburgerMenu = \u003cIcon name=\"menu\" /\u003e\n```\n\n### `Avatar`\n\n```jsx\nimport { Avatar } from 'naxos'\nimport profileImage from './some-image.png'\n\nconst smallAvatar = \u003cAvatar size=\"small\" /\u003e\nconst customImage = \u003cAvatar source={profileImage} /\u003e\n```\n\n### `Intro`\n\n```jsx\nimport { Intro, Text } from 'naxos'\n\nconst Slides = (\n  \u003cIntro skippable onDone={() =\u003e setDone(true)}\u003e\n    \u003cIntro.Slide key=\"first\"\u003e\n      \u003cText\u003eFirst Slide\u003c/Text\u003e\n    \u003c/Intro.Slide\u003e\n    \u003cIntro.Slide key=\"second\"\u003e\n      \u003cText\u003eSecond Slide\u003c/Text\u003e\n    \u003c/Intro.Slide\u003e\n  \u003c/Intro\u003e\n)\n```\n\n### `Tabs`\n\n```jsx\nimport { Tabs } from 'naxos'\n\nconst tabs = (\n  \u003cTabs labels={['Home', 'Profile', 'About']}\u003e\n    \u003cText\u003eHome Content\u003c/Text\u003e\n    \u003cText\u003eProfile Content\u003c/Text\u003e\n    \u003cText\u003eAbout Content\u003c/Text\u003e\n  \u003c/Tabs\u003e\n)\n```\n\n### `AbsoluteButton`\n\n```jsx\nimport { AbsoluteButton } from 'naxos'\n\nconst Slides = (\n  \u003cAbsoluteButton\n    type=\"back | close | add\"\n    position=\"top-left | top-right | bottom-left | bottom-right\"\n  /\u003e\n)\n```\n\n## Style\n\nThe plugin includes helper values for `Color`, `Space` and `Font` that are shared with the build in components and can also be configured as shown in the next paragraph.\n\nThe default styles used by the built-in components can be inspected and extended to allow for significant customization.\n\n```jsx\nimport { Color, Space, Font, Button } from 'naxos'\n\nconst buttonStyles = Button.createStyles()\n\nbuttonStyles.wrapper.padding = Space.small\nbuttonStyles.wrapper.backgroundColor = Color.highlight\nbuttonStyles.wrapper.borderRadius = Space.tiny\n\nexport const CustomizedButton = ({ label, ...props }) =\u003e (\n  \u003cButton styles={buttonStyles} {...props}\u003e\n    {label}\n  \u003c/Button\u003e\n)\n```\n\n## Configuration\n\n```jsx\nimport { AppRegistry } from 'react-native'\nimport { configure } from 'naxos'\nimport { App } from './App'\n\nconfigure({\n  Color: {\n    interact: '#009695',\n    highlight: '#7e0ce1',\n  },\n  Space: {\n    medium: 25,\n  },\n  Font: {\n    bold: {\n      fontWeight: 700,\n    },\n  },\n})\n\nAppRegistry.registerComponent('app', () =\u003e App)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobua%2Fnaxos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftobua%2Fnaxos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftobua%2Fnaxos/lists"}