
Security Fundamentals
Turtles, Clams, and Cyber Threat Actors: Shell Usage
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
backpack-react-native
Advanced tools
> Backpack is a collection of design resources, reusable components and guidelines for creating Skyscanner's products.
Backpack is a collection of design resources, reusable components and guidelines for creating Skyscanner's products.
npm install backpack-react-native --save
Our Android code is written in Kotlin
, so in order to compile it from source you need to have org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
in the classpath
.
Add the following your root build.gradle
file:
buildscript {
ext.kotlin_version = '1.5.21'
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
If you have defined project-wide properties in your root build.gradle
, this library will detect the presence of the following properties:
ext {
compileSdkVersion = 30
targetSdkVersion = 30
minSdkVersion = 26
}
backpack-react-native
project in your settings.gradle
file: include ':backpack-react-native'
project(':backpack-react-native').projectDir = new File(rootProject.projectDir, '../node_modules/backpack-react-native/android')
bpk-appearance
as a dependency in your app/module build.gradle
file: dependencies {
implementation project(':backpack-react-native')
}
Alternatively, the pre compiled version is available on Skyscanner's internal Artifactory.
dependencies {
implementation 'net.skyscanner.backpack:bpk-appearance:<version>'
}
Add the following dependencies to your Podfile using the path to the NPM package as follows:
pod 'BackpackReactNative', path: '../node_modules/backpack-react-native/ios/BackpackReactNative'
pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
This package depends on react-native-maps
and its native components need to be integrated manually by following their instructions.
getPackages
function in your MainActiviy
.override fun getPackages(): List<ReactPackage> {
return Arrays.asList(
MainReactPackage(),
...
MapsPackage(),
LinearGradientPackage(),
CalendarPackage(),
DialogPackage(),
BpkSnackbarPackage())
}
|uiMode
to the android:configChanges
prop of <activity>
in AndroidManifest.xml
. Example:<activity
android:name=".MainActivity"
android:exported="true"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode">
This ensures the RN code will react to system-wide changes to the current appearance.
This method has the advantage of fonts being copied from this module at build time so that the fonts and JS are always in sync, making upgrades painless.
Edit android/app/build.gradle
( NOT android/build.gradle
) and add the following:
apply from: "node_modules/backpack-react-native/bpk-component-icon/fonts.gradle"
The most reliable way to install the file on iOS is manually, three simple steps are required:
update the Info.plist
file by adding
<key>UIAppFonts</key>
<array>
<string>BpkIcon.ttf</string>
</array>
if the entry UIAppFonts
is already there, just add <string>BpkIcon.ttf</string>
inside the <array>
like so
<array>
... existing entries
<string>BpkIcon.ttf</string>
</array>
In the Build Phases
of your project, in the section Copy Bundle Resources
add a reference to the BpkIcon.ttf
file path like /path/to/node_modules/@skyscanner/bpk-svgs/dist/font/BpkIcon.ttf
Rebuild the app
To contribute please see contributing.md.
FAQs
> Backpack is a collection of design resources, reusable components and guidelines for creating Skyscanner's products.
The npm package backpack-react-native receives a total of 21 weekly downloads. As such, backpack-react-native popularity was classified as not popular.
We found that backpack-react-native demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security Fundamentals
The Socket Threat Research Team uncovers how threat actors weaponize shell techniques across npm, PyPI, and Go ecosystems to maintain persistence and exfiltrate data.
Security News
At VulnCon 2025, NIST scrapped its NVD consortium plans, admitted it can't keep up with CVEs, and outlined automation efforts amid a mounting backlog.
Product
We redesigned our GitHub PR comments to deliver clear, actionable security insights without adding noise to your workflow.