{"id":19928076,"url":"https://github.com/razorrun/react-native-material-dropdown-smartlife","last_synced_at":"2026-05-01T21:35:24.962Z","repository":{"id":57154293,"uuid":"297461915","full_name":"razorRun/react-native-material-dropdown-smartlife","owner":"razorRun","description":"React Native Material dropdown with consistent behaviour on iOS and Android","archived":false,"fork":false,"pushed_at":"2020-09-27T20:16:42.000Z","size":269,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-21T16:59:17.287Z","etag":null,"topics":["android","dropdown","dropdownlist","ios","material-design","material-ui","react-native"],"latest_commit_sha":null,"homepage":"https://roshan.digital/","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/razorRun.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":"2020-09-21T21:10:03.000Z","updated_at":"2020-09-27T20:16:44.000Z","dependencies_parsed_at":"2022-09-06T19:21:38.076Z","dependency_job_id":null,"html_url":"https://github.com/razorRun/react-native-material-dropdown-smartlife","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/razorRun/react-native-material-dropdown-smartlife","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-native-material-dropdown-smartlife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-native-material-dropdown-smartlife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-native-material-dropdown-smartlife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-native-material-dropdown-smartlife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/razorRun","download_url":"https://codeload.github.com/razorRun/react-native-material-dropdown-smartlife/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/razorRun%2Freact-native-material-dropdown-smartlife/sbom","scorecard":{"id":763851,"data":{"date":"2025-08-11","repo":{"name":"github.com/razorRun/react-native-material-dropdown-smartlife","commit":"64c8bab2b9420fd273b89a3662a68ee17c53f4f9"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/11 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Pinned-Dependencies","score":3,"reason":"dependency not pinned by hash detected -- score normalized to 3","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/blank.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-native-material-dropdown-smartlife/blank.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/blank.yml:17: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-native-material-dropdown-smartlife/blank.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/blank.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-native-material-dropdown-smartlife/blank.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/blank.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/razorRun/react-native-material-dropdown-smartlife/blank.yml/master?enable=pin","Info:   0 out of   4 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/blank.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Binary-Artifacts","score":9,"reason":"binaries present in source code","details":["Warn: binary detected: example/android/gradle/wrapper/gradle-wrapper.jar:1"],"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: license.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 21 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"14 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-23T00:11:22.988Z","repository_id":57154293,"created_at":"2025-08-23T00:11:22.988Z","updated_at":"2025-08-23T00:11:22.988Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274255048,"owners_count":25250552,"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","status":"online","status_checked_at":"2025-09-09T02:00:10.223Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","dropdown","dropdownlist","ios","material-design","material-ui","react-native"],"created_at":"2024-11-12T22:36:12.420Z","updated_at":"2026-05-01T21:35:24.902Z","avatar_url":"https://github.com/razorRun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"A `\u003cDropdown\u003e` component for react-native projects was initially cloned from [`react-native-material-dropdown`](https://github.com/n4kz/react-native-material-dropdown) And been actively maintaining it as we wanted to avoid any future changes to original repo that effects our existing applications. \n\n# react-native-material-dropdown-smartlife\n\nMaterial dropdown with consistent behaviour on iOS and Android\n\n## Features\n\n* Easy to use\n* Consistent look and feel on iOS and Android\n* Customizable font size, colors and animation duration\n* Dynamic dropdown size and position\n* Configurable visible item count\n* RTL support\n* Pure javascript implementation\n\n## Installation\n\n```bash\nnpm install --save react-native-material-dropdown-smartlife\n```\n\n## Usage\n\n```javascript\nimport React, { Component } from 'react';\nimport { Dropdown } from 'react-native-material-dropdown-smartlife';\n\nclass Example extends Component {\n  render() {\n    let data = [{\n      value: 'Banana',\n    }, {\n      value: 'Mango',\n    }, {\n      value: 'Pear',\n    }];\n\n    return (\n      \u003cDropdown\n        label='Favorite Fruit'\n        data={data}\n      /\u003e\n    );\n  }\n}\n```\n\n## Properties\n\n name              | description                                   | type     | default\n:----------------- |:--------------------------------------------- | --------:|:------------------\n label             | Text field label text                         |   String | -\n error             | Text field error text                         |   String | -\n animationDuration | Text field animation duration in ms           |   Number | 225\n fontSize          | Text field font size                          |   Number | 16\n labelFontSize     | Text field label font size                    |   Number | 12\n baseColor         | Text field base color                         |   String | rgba(0, 0, 0, .38)\n textColor         | Text field text color                         |   String | rgba(0, 0, 0, .87)\n itemColor         | Dropdown item text color (inactive item)      |   String | rgba(0, 0, 0, .54)\n selectedItemColor | Dropdown item text color (active item)        |   String | rgba(0, 0, 0, .87)\n disabledItemColor | Dropdown item text color (disabled item)      |   String | rgba(0, 0, 0, .38)\n dropdownPosition  | Dropdown position (dynamic if undefined)      |   Number | -\n itemCount         | Dropdown visible item count                   |   Number | 4\n itemPadding       | Dropdown item vertical padding                |   Number | 8\n itemTextStyle     | Dropdown item text styles                     |   Object | -\n dropdownOffset    | Dropdown offset                               |   Object | { top: 32, left: 0 }\n dropdownMargins   | Dropdown margins                              |   Object | { min: 8, max: 16 }\n data              | Dropdown item data                            |    Array | []\n value             | Selected value                                |   String | -\n containerStyle    | Styles for container view                     |   Object | -\n overlayStyle      | Styles for overlay view                       |   Object | -\n pickerStyle       | Styles for item picker view                   |   Object | -\n shadeOpacity      | Shade opacity for dropdown items              |   Number | 0.12\n rippleOpacity     | Opacity for ripple effect                     |   Number | 0.54\n rippleInsets      | Insets for ripple on base component           |   Object | { top: 16, bottom: -8 }\n rippleCentered    | Ripple on base component should be centered   |  Boolean | false\n renderBase        | Render base component                         | Function | -\n renderAccessory   | Render text field accessory                   | Function | -\n valueExtractor    | Extract value from item (args: item, index)   | Function | ({ value }) =\u003e value\n labelExtractor    | Extract label from item (args: item, index)   | Function | ({ label }) =\u003e label\n propsExtractor    | Extract props from item (args: item, index)   | Function | () =\u003e null\n onChangeText      | Selection callback (args: value, index, data) | Function | -\n\nOther [TextField][textfield], [TextInput][textinput] and [TouchableWithoutFeedback][touchable] properties will also work\n\n## Methods\n\n name            | description                    | returns\n:--------------- |:------------------------------ |:--------\n focus()         | Acquire focus (open dropdown)  | -\n blur()          | Release focus (close dropdown) | -\n value()         | Get current value              | String\n selectedIndex() | Get selected index             | Number\n selectedItem()  | Get selected item              | Object\n isFocused()     | Get current focus state        | Boolean\n\n## Example\n\n```bash\ngit clone https://github.com/razorRun/react-native-material-dropdown-smartlife\ncd react-native-material-dropdown-smartlife/example\nnpm install\nnpm run ios # or npm run android\n```\n\n## Copyright and License\n\nBSD License\n\nCopyright 2017-2018 Alexander Nazarov. All rights reserved.\n\n### credits\n[n4kz](https://github.com/n4kz/react-native-material-dropdown#readme)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazorrun%2Freact-native-material-dropdown-smartlife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frazorrun%2Freact-native-material-dropdown-smartlife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frazorrun%2Freact-native-material-dropdown-smartlife/lists"}