{"id":4377,"url":"https://github.com/Kureev/react-native-navbar","last_synced_at":"2025-08-04T01:32:09.202Z","repository":{"id":29610088,"uuid":"33150460","full_name":"Kureev/react-native-navbar","owner":"Kureev","description":"Navbar component for React Native","archived":false,"fork":false,"pushed_at":"2022-05-16T16:54:29.000Z","size":805,"stargazers_count":1895,"open_issues_count":64,"forks_count":318,"subscribers_count":41,"default_branch":"master","last_synced_at":"2024-10-29T17:56:26.117Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/Kureev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-30T21:55:57.000Z","updated_at":"2024-10-28T05:54:42.000Z","dependencies_parsed_at":"2022-09-03T14:50:43.190Z","dependency_job_id":null,"html_url":"https://github.com/Kureev/react-native-navbar","commit_stats":null,"previous_names":["react-native-community/react-native-navbar"],"tags_count":73,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Freact-native-navbar","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Freact-native-navbar/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Freact-native-navbar/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kureev%2Freact-native-navbar/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kureev","download_url":"https://codeload.github.com/Kureev/react-native-navbar/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224829133,"owners_count":17376951,"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":[],"created_at":"2024-01-05T20:17:10.015Z","updated_at":"2024-12-07T08:30:33.195Z","avatar_url":"https://github.com/Kureev.png","language":"JavaScript","funding_links":[],"categories":["Components","JavaScript"],"sub_categories":["Navigation","UI"],"readme":"## Customizable navbar for react-native\n![react-native-side-menu demo](https://habrastorage.org/files/1b4/9cd/9d0/1b49cd9d0d054cada8ebef5e2326e10d.png)\n\n### Content\n- [Installation](#installation)\n- [Examples](#examples)\n- [Getting started](#getting-started)\n- [API](#api)\n- [Usage with webpack](#usage-with-webpack)\n- [Questions?](#questions)\n\n### Examples\n- [Basic](https://github.com/Kureev/react-native-navbar/tree/master/examples/Basic)\n- [Custom Elements](https://github.com/Kureev/react-native-navbar/tree/master/examples/CustomElements)\n- [Routing](https://github.com/Kureev/react-native-navbar/tree/master/examples/Routing)\n\n### Getting started\n- Install `react-native-navbar`:\n  - By using `yarn`:\n    ```\n    $ yarn add react-native-navbar\n    ```\n  - By using `npm`:\n    ```\n    $ npm install react-native-navbar --save\n    ```\n\n- Import it in the file where you want to use it:\n  ```jsx\n  import NavigationBar from 'react-native-navbar';\n  ```\n\n- Add it to your React element tree:\n```jsx\nconst styles = {\n  container: {\n    flex: 1,\n  },\n};\n\nconst rightButtonConfig = {\n  title: 'Next',\n  handler: () =\u003e alert('hello!'),\n};\n\nconst titleConfig = {\n  title: 'Hello, world',\n};\n\nfunction ComponentWithNavigationBar() {\n  return (\n    \u003cView style={styles.container}\u003e\n      \u003cNavigationBar\n        title={titleConfig}\n        rightButton={rightButtonConfig}\n      /\u003e\n    \u003c/View\u003e\n  );\n}\n```\n\nThat's it, you're ready to go!\n\n### API\n- **style** - (Object, Array) - Style object or array of style objects\n- **containerStyle** - (Object) - Style object for styling navbar container\n- **tintColor** - (String) - NavigationBar's tint color\n- **statusBar** - (Object):\n  - **style** - ('light-content' or 'default') - Style of statusBar\n  - **hidden** - (Boolean)\n  - **tintColor** - (String) - Status bar tint color\n  - **hideAnimation** - ('fade', 'slide', 'none') - Type of statusBar hide animation\n  - **showAnimation** - ('fade', 'slide', 'none') - Type of statusBar show animation\n- **leftButton / rightButton** - (Object, React Element) - Either plain object with configuration, or React Element which will be used as a custom left/right button element. Configuration object has following keys:\n  - **title** - (String) - Button's title\n  - **tintColor** - (String) - Button's text color\n  - **style** - (Object, Array) - Style object or array of style objects\n  - **handler** - (Function) - onPress function handler\n  - **disabled** - (Boolean) - If true, disable interactions for this button.\n  - **accessible** - (Boolean) - Indicates that the view is an accessibility element\n  - **accessibilityLabel** - (String, React Element) - Overrides the text that's read by the screen reader for the button.\n- **title** - (Object, React Element) - Either plain object with configuration, or React Element which will be used as a custom title element. Configuration object has following keys:\n  - **title** - (String) - Button's title\n  - **style** - (Object, Array, Number) - Style object or array of style objects\n  - **tintColor** - (String) - Title's text color\n  - **ellipsizeMode** - ('head', 'middle', 'tail', 'clip') - How to [display](https://reactnative.dev/docs/text.html#ellipsizemode) the text\n  - **numberOfLines** - (Number) - How to [truncate](https://reactnative.dev/docs/text.html#numberoflines) the text\n\n### Usage with Webpack\nThis module uses JSX syntax and requires a compiler such as [babel](https://babeljs.io/).\nReact Native's packager runs this automatically but if you use Webpack be sure\nto compile this module from your dependencies\n```javascript\nloaders: [{\n  test: /\\.js$/,\n   include: [\n     path.resolve(__dirname, \"src\"),\n     path.resolve(__dirname, \"node_modules/react-native-navbar\")\n   ],\n  loader: 'babel',\n  query: { stage: 0, plugins: [] }\n}]\n```\n\n### Questions?\nFeel free to ping me on [twitter](https://twitter.com/kureevalexey)\nIf you want to report a bug, please [submit an issue!](https://github.com/react-native-community/react-native-navbar/issues/new)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKureev%2Freact-native-navbar","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FKureev%2Freact-native-navbar","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FKureev%2Freact-native-navbar/lists"}