{"id":13637478,"url":"https://github.com/n4kz/react-native-material-buttons","last_synced_at":"2025-04-05T23:11:05.222Z","repository":{"id":42461329,"uuid":"83970041","full_name":"n4kz/react-native-material-buttons","owner":"n4kz","description":"Material buttons","archived":false,"fork":false,"pushed_at":"2021-09-14T11:27:56.000Z","size":274,"stargazers_count":67,"open_issues_count":6,"forks_count":80,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-04-24T13:44:24.873Z","etag":null,"topics":["android","ios","material","material-design","react","react-native"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/n4kz.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"license.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-03-05T12:58:33.000Z","updated_at":"2023-08-15T16:07:46.000Z","dependencies_parsed_at":"2022-07-09T00:46:05.469Z","dependency_job_id":null,"html_url":"https://github.com/n4kz/react-native-material-buttons","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4kz%2Freact-native-material-buttons","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4kz%2Freact-native-material-buttons/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4kz%2Freact-native-material-buttons/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/n4kz%2Freact-native-material-buttons/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/n4kz","download_url":"https://codeload.github.com/n4kz/react-native-material-buttons/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247411235,"owners_count":20934653,"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":["android","ios","material","material-design","react","react-native"],"created_at":"2024-08-02T00:01:18.130Z","updated_at":"2025-04-05T23:11:05.201Z","avatar_url":"https://github.com/n4kz.png","language":"JavaScript","funding_links":[],"categories":["React Native"],"sub_categories":["Components React Native"],"readme":"[npm-badge]: https://img.shields.io/npm/v/react-native-material-buttons.svg?colorB=ff6d00\n[npm-url]: https://npmjs.com/package/react-native-material-buttons\n[license-badge]: https://img.shields.io/npm/l/react-native-material-buttons.svg?colorB=448aff\n[license-url]: https://raw.githubusercontent.com/n4kz/react-native-material-buttons/master/license.txt\n[example-url]: https://cloud.githubusercontent.com/assets/2055622/23826422/df52a53c-06ac-11e7-855f-f6d189c50320.gif\n[ripple]: https://github.com/n4kz/react-native-material-ripple#properties\n\n# react-native-material-buttons\n\n[![npm][npm-badge]][npm-url]\n[![license][license-badge]][license-url]\n\nMaterial buttons with consistent behaviour on iOS and Android\n\n![example][example-url]\n\n## Features\n\n* Easy to use\n* Consistent look and feel on iOS and Android\n* Animated state transitions\n* Ripple animation on touch\n* Pure javascript implementation\n\n## Installation\n\n```bash\nnpm install --save react-native-material-buttons\n```\n\n## Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport { TextButton, RaisedTextButton } from 'react-native-material-buttons';\n\nclass Example extends Component {\n  _onPress = ({ id }) =\u003e {\n    console.log(`${id} pressed`);\n  };\n\n  render() {\n    let payload = { id: 'button-1' };\n\n    return (\n      \u003cRaisedTextButton title='touch me' onPress={this._onPress} payload={payload} /\u003e\n    );\n  }\n}\n```\n\n## Common properties\n\n name                     | description                            | type           | default\n:------------------------ |:-------------------------------------- | --------------:|:------------------\n color                    | Button color                           |         String | rgb(224, 224, 224)\n disabledColor            | Button color for disabled state        |         String | rgb(240, 240, 240)\n shadeColor               | Button shade color for focused state   |         String | rgb(0, 0, 0)\n shadeOpacity             | Button shade opacity for focused state |         Number | 0.12\n shadeBorderRadius        | Button shade border radius             |         Number | 2\n focusAnimation           | Focus animation state                  | Animated.Value | -\n disableAnimation         | Disable animation state                | Animated.Value | -\n focusAnimationDuration   | Focus animation duration in ms         |         Number | 225\n disableAnimationDuration | Disable animation duration in ms       |         Number | 225\n disabled                 | Button availability                    |        Boolean | false\n onPress                  | Touch up callback                      |       Function | -\n payload                  | Payload object for onPress callback    |            Any | -\n\nOther [Ripple][ripple] properties will also work\n\n## TextButton properties\n\n name               | description                           | type     | default\n:------------------ |:------------------------------------- | --------:|:------------------\n title              | Button title                          |   String | -\n titleColor         | Button title color                    |   String | rgb(0, 0, 0)\n disabledTitleColor | Button title color for disabled state |   String | rgba(0, 0, 0, .26)\n titleStyle         | Button title style                    |   Object | -\n\n## RaisedTextButton properties\n\n name               | description                           | type     | default\n:------------------ |:------------------------------------- | --------:|:------------------\n title              | Button title                          |   String | -\n titleColor         | Button title color                    |   String | rgb(66, 66, 66)\n disabledTitleColor | Button title color for disabled state |   String | rgba(0, 0, 0, .26)\n titleStyle         | Button title style                    |   Object | -\n\n## Example\n\n```bash\ngit clone https://github.com/n4kz/react-native-material-buttons\ncd react-native-material-buttons/example\nnpm install\nnpm run ios # or npm run android\n```\n\n## Copyright and License\n\nBSD License\n\nCopyright 2017-2019 Alexander Nazarov. All rights reserved.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn4kz%2Freact-native-material-buttons","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fn4kz%2Freact-native-material-buttons","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fn4kz%2Freact-native-material-buttons/lists"}