Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
rn-calendar-view
Advanced tools
Simple Calendar based Date picker for react native.
npm i -s rn-calendar-view
Prop | Type | Required | Default Value | Description |
---|---|---|---|---|
primaryColor | String | No | #FAFAFA | Primary Color for buttons, dates |
primaryTextColor | String | No | #333333 | Primary Text Color for buttons, dates |
secondaryColor | String | No | #000AAA | Color for buttons, dates on active state |
secondaryTextColor | String | No | #FFFFFF | Text Color for buttons, dates on active state |
onDateChange | Function | Yes | N/A | Call Back Function on selecting a date |
import React from 'react';
import {
StatusBar,
SafeAreaView,
Text,
ScrollView,
StyleSheet,
Alert
} from 'react-native';
import { Calendar } from 'rn-calendar-view';
const styles = StyleSheet.create({
container: {
flex: 1,
},
scrollContainer: {
flex: 1,
alignItems: 'center',
padding: 20,
},
title: {
textAlign: 'center',
fontWeight: 'bold',
margin: 20,
},
});
const App = () => {
return (
<>
<StatusBar barStyle="dark-content" />
<SafeAreaView style={styles.container}>
<ScrollView contentContainerStyle={styles.scrollContainer}>
<Text style={styles.title}>Date Picker</Text>
<Calendar
onDateChange={obj => Alert.alert('You have picked', `${obj.date}-${obj.month}-${obj.year}`)}
/>
</ScrollView>
</SafeAreaView>
</>
);
};
export default App;
FAQs
Simple Calendar Component for React Native
The npm package rn-calendar-view receives a total of 0 weekly downloads. As such, rn-calendar-view popularity was classified as not popular.
We found that rn-calendar-view 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.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.