
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-inline-datepicker
Advanced tools
A simple android and ios datepicker which will be rendered inline with other react-native components.
This is a datepicker component for react-native apps which will be rendered inline with other components. The component can be used for both android and ios apps.
$ npm install react-native-inline-datepicker --save
import InlineDatePicker from 'react-native-inline-datepicker';
import InlineDatePicker from 'react-native-inline-datepicker';
import React, { Component } from 'react';
import { View, Text } from 'react-native';
export default class DatePickerDemo extends Component {
state = {
year: 2019,
month: 4,
date: 24
};
setDate = (y, m, d) => {
this.setState({year: y, month: m, date: d});
}
render() {
return (
<View>
<InlineDatePicker onChangeDate = {this.setDate}/>
<Text>The selected date is:</Text>
<Text>{this.state.year}-{this.state.month}-{this.state.date}</Text>
</View>
);
}
}
The screenshot for the above code can be found here.
| Prop | Default | Type | Description |
|---|---|---|---|
| onChangeDate | null | func | Callback function taking three arguments (year, month, date) to take the user selected year, month and date respectively. |
| startDate | null | Array | An array containing three numbers to set the current date of the datepicker. The first element is the year, the second element is the month number ( 0 = January ... 11 = December). If this prop is not defined, the current date on the datepicker will be set to the current date on the user's device. |
| skinColor | null | enum("white", "red", "green", "blue") | Predefined skin colors for the date picker which provides style alternatives without defining the color properties described below. See below for effects. |
| fontSize | 18 | number | The font size of all the texts in the datepicker except the title. |
| titleFontSize | 20 | number | The font size of the title. |
| textColor | #ddd | string | Text color all texts in the current month. |
| activeTextColor | #ddd | string | Text color of selected date or month. |
| adjacentTextColor | #ccc | string | Text color of ajacent months. |
| iconSize | 22 | number | The size of the increment icons. |
| headerBackgroundColor | #222 | string | Background color of the header. |
| currentMonthBackgroundColor | #555 | string | Background color of the dates within the current month or the months which appear when the header is clicked. |
| adjacentMonthsBackgroundColor | #888 | string | Background color of the dates in the adjacent months. |
| selectedDateBackgroundColor | #000 | string | Background color of the selected date. |
The optional skinColor property can have values of "white", "red", "green" or "blue" with the following effects.





If you have any issues or want to suggest something , your can write it here.
FAQs
A simple android and ios datepicker which will be rendered inline with other react-native components.
The npm package react-native-inline-datepicker receives a total of 763 weekly downloads. As such, react-native-inline-datepicker popularity was classified as not popular.
We found that react-native-inline-datepicker 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

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.