
Security News
Feross on TBPN: How North Korea Hijacked Axios
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.
nativescript-gradient
Advanced tools
NativeScript plugin to provide gradient layouts. Gradient support is available in NativeScript using CSS but I really like the declarative API of this plugin so I'm going to share :smile:
| Screen 1 | Screen 2 |
|---|---|
![]() | ![]() |
| Android | iOS |
|---|---|
| csdodd/GradientLayout | Evaluating native iOS libs... |
From your command prompt/termial go to your app's root folder and execute:
npm install nativescript-gradient
<Page
xmlns="http://schemas.nativescript.org/tns.xsd"
xmlns:Gradient="nativescript-gradient" loaded="pageLoaded">
<ActionBar title="Gradients" />
<StackLayout height="100%">
<Gradient:Gradient height="50%" startColor="#DA22FF" endColor="#9733EE" orientation="LEFT_RIGHT" id="gradient">
<StackLayout>
<Label text="Left to Right" class="info" textWrap="true" />
<Image src="~/images/wonka.jpg" stretch="aspectFit" />
</StackLayout>
</Gradient:Gradient>
<Gradient:Gradient height="50%" startColor="#c2e59c" endColor="#64b3f4" orientation="TL_BR">
<StackLayout>
<Label text="Top Left to Bottom Right" class="info" textWrap="true" />
<Button text="WHATEVER YOU LIKE" tap="gotoMain" height="50" />
</StackLayout>
</Gradient:Gradient>
</StackLayout>
</Page>
startColor - (color string) - required
Attribute to set the starting color of the gradient.
endColor - (color string) - required
Attribute to set the ending color of the gradient.
orientation - (string) - optional --- Default is Top to bottom direction.
These values determine the starting and end of the gradient.
FAQs
NativeScript plugin for gradient layouts.
The npm package nativescript-gradient receives a total of 7 weekly downloads. As such, nativescript-gradient popularity was classified as not popular.
We found that nativescript-gradient demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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 News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.

Security News
OpenSSF has issued a high-severity advisory warning open source developers of an active Slack-based campaign using impersonation to deliver malware.

Research
/Security News
Malicious packages published to npm, PyPI, Go Modules, crates.io, and Packagist impersonate developer tooling to fetch staged malware, steal credentials and wallets, and enable remote access.