Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
idea-native-clock
Advanced tools
$ npm install idea-native-clock --save
import * as React from 'react';
import { StyleSheet, Text, View, ImageBackground } from 'react-native';
import AnalogClock from 'idea-native-clock';
export default class App extends React.Component {
render() {
return (
<View style={styles.container}>
//automatic time
<AnalogClock
size={100}
/>
<View style={{ marginBottom: 5 }} />
//if you want to set time manually
<AnalogClock
colorClock="#2196F3"
colorNumber="#000000"
colorCenter="#00BCD4"
colorHour="#FF8F00"
colorMinutes="#FFC400"
hour="2"
minutes={55}
seconds={60}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'center',
backgroundColor: '#ecf0f1',
padding: 8,
},
});
Prop | Type | Default | Note |
---|---|---|---|
size | number | 180 | Clock size. |
colorClock | string | rgba(255,255,255,0.8) | Clock color. |
colorNumber | string | #ffffff | Color of the clock numbers. |
colorCenter | string | #ffffff | Clock center color. |
colorHour | string | #ffffff | Clock hour hand color. |
colorMinutes | string | rgba(255,255,255,0.7) | Clock minute hand color. |
colorSeconds | string | rgba(255,255,255,0.7) | Clock Second hand color. |
hour | number | Hour. | |
minutes | number | Minutes. | |
seconds | number | Seconds. |
This library is provided under the MIT License.
FAQs
Analog Clock for React Native
The npm package idea-native-clock receives a total of 2 weekly downloads. As such, idea-native-clock popularity was classified as not popular.
We found that idea-native-clock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.