Installations
npm install react-native-bpk-component-chip
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
12.16.1
NPM Version
lerna/3.10.7/node@v12.16.1+x64 (darwin)
Score
29.1
Supply Chain
31.8
Quality
72
Maintenance
25
Vulnerability
90.8
License
Releases
Contributors
Languages
TypeScript (53.18%)
JavaScript (29.76%)
SCSS (16.9%)
Shell (0.14%)
HTML (0.02%)
validate.email 🚀
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Developer
Download Statistics
Total Downloads
27,366
Last Day
1
Last Week
2
Last Month
157
Last Year
2,625
GitHub Statistics
Apache-2.0 License
507 Stars
8,304 Commits
200 Forks
44 Watchers
87 Branches
167 Contributors
Updated on Feb 26, 2025
Package Meta Information
Latest Version
6.0.1
Package Id
react-native-bpk-component-chip@6.0.1
Unpacked Size
130.29 kB
Size
13.23 kB
File Count
22
NPM Version
lerna/3.10.7/node@v12.16.1+x64 (darwin)
Node Version
12.16.1
Total Downloads
Cumulative downloads
Total Downloads
27,366
Last Day
0%
1
Compared to previous day
Last Week
-85.7%
2
Compared to previous week
Last Month
-19.5%
157
Compared to previous month
Last Year
-20.5%
2,625
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
8
Peer Dependencies
3
Dev Dependencies
1
react-native-bpk-component-chip
Backpack React Native chip component.
Installation
1npm install react-native-bpk-component-chip --save-dev
Usage
1import React, { Component } from 'react'; 2import { StyleSheet, View } from 'react-native'; 3import { spacingBase } from 'bpk-tokens/tokens/base.react.native'; 4import BpkChip, { BpkDismissibleChip } from 'react-native-bpk-component-chip'; 5 6const styles = StyleSheet.create({ 7 container: { 8 flex: 1, 9 justifyContent: 'center', 10 padding: spacingBase, 11 }, 12}); 13 14export default class App extends Component { 15 constructor() { 16 super(); 17 this.state = { 18 flightsSelected: false, 19 showHotels: true, 20 }; 21 } 22 23 dismiss = () => { 24 this.setState({ 25 showHotels: false, 26 }); 27 }; 28 29 toggle = () => { 30 this.setState({ 31 flightsSelected: !this.state.flightsSelected, 32 }); 33 }; 34 35 render() { 36 return ( 37 <View style={styles.container}> 38 <BpkChip 39 accessibilityLabel="Toggle flights" 40 label="Flights" 41 onPress={this.toggle} 42 selected={this.state.flightsSelected} 43 /> 44 { this.state.showHotels && 45 <BpkDismissibleChip 46 accessibilityLabel="Remove hotels" 47 label="Hotels" 48 onPress={this.dismiss} 49 /> 50 } 51 </View> 52 ); 53 } 54}
Props
BpkChip
Property | PropType | Required | Default Value |
---|---|---|---|
accessibilityLabel | string | true | - |
onPress | func | true | - |
label | string | true | - |
disabled | bool | false | false |
selected | bool | false | false |
innerChipStyle | ViewStyle | false | null |
type | oneOf(CHIP_TYPES) | false | primary |
Note that on Android, style
should be used for positional styling and innerChipStyle
should be used for other styling.
(On iOS, style
and innerChipStyle
are applied together so it doesn't matter which you use!)
Theme Props
chipSelectedBackgroundColor
chipSelectedTextColor
chipOutlineSelectedBackgroundColor
chipOutlineSelectedTextColor
BpkDismissibleChip
Property | PropType | Required | Default Value |
---|---|---|---|
accessibilityLabel | string | true | - |
label | string | true | - |
onPress | func | true | - |
disabled | bool | false | false |
innerChipStyle | ViewStyle | false | null |
type | oneOf(CHIP_TYPES) | false | primary |
Note that on Android, style
should be used for positional styling and innerChipStyle
should be used for other styling.
(On iOS, style
and innerChipStyle
are applied together so it doesn't matter which you use!)

No vulnerabilities found.
Reason
all changesets reviewed
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/release.yml:80
Reason
dependency not pinned by hash detected -- score normalized to 1
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:59: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:72: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:74: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:80: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:115: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:121: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/_build.yml:130: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/_build.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/label-check.yml:12: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/label-check.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:89: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:106: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:113: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:126: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:128: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:134: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:147: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:163: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/main.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:49: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:90: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:92: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:98: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:107: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/pr.yml:123: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/pr.yml:133: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/pr.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:43: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:87: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:97: update your workflow using https://app.stepsecurity.io/secureworkflow/Skyscanner/backpack/release.yml/main?enable=pin
- Info: 0 out of 48 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 5 third-party GitHubAction dependencies pinned
- Info: 3 out of 3 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/_build.yml:19
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/_build.yml:68
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/_build.yml:109
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/main.yml:79
- Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/main.yml:160
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/pr.yml:79
- Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/release.yml:75
- Warn: no topLevel permission defined: .github/workflows/_build.yml:1
- Warn: no topLevel permission defined: .github/workflows/label-check.yml:1
- Warn: no topLevel permission defined: .github/workflows/main.yml:1
- Warn: no topLevel permission defined: .github/workflows/pr.yml:1
- Warn: no topLevel permission defined: .github/workflows/release.yml:1
Reason
no effort to earn an OpenSSF best practices badge detected
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
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 30 are checked with a SAST tool
Reason
13 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-7q7g-4xm8-89cq
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-pfrx-2q88-qq97
- Warn: Project is vulnerable to: GHSA-pfq8-rq6v-vf5m
- Warn: Project is vulnerable to: GHSA-ch52-vgq2-943f
- Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj
- Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
- Warn: Project is vulnerable to: GHSA-rp65-9cf3-cjxr
- Warn: Project is vulnerable to: GHSA-44c6-4v22-4mhx
- Warn: Project is vulnerable to: GHSA-4x5v-gmq8-25ch
Score
5.2
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More