Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
react-native-date-input
Advanced tools
A simple React Native date input component that uses DatePickerAndroid and DatePickerIOS to select dates
A simple React Native date input component that uses DatePickerAndroid
and DatePickerIOS
to select dates
npm install react-native-date-input
yarn add react-native-date-input
expo install react-native-date-input
import React, { useState } from 'react';
import { DateInput } from 'react-native-date-input';
import dayjs from 'dayjs';
export default (props) => {
const [date, setDate] = useState('');
let dateInput = null;
const handleChange = (date) => {
setDate(date);
};
const focus = () => {
if (!dateInput) {
return;
}
dateInput.focus();
};
return (
<DateInput
inputProps={{
style: {},
...props,
// Supports all TextInput props
}}
dateFormat={'DD/MM/YYYY'}
defaultValue={new Date(dayjs().subtract(5, 'year').format('DD/MM/YYYY'))}
defaultDate={new Date(dayjs().subtract(5, 'year'))}
minimumDate={new Date(dayjs().subtract(10, 'year'))}
maximumDate={new Date()}
handleChange={handleChange}
onRef={(input) => (dateInput = input)}
/>
);
};
[1.0.8] - 2019-09-24
FAQs
A simple React Native date input component that uses DatePickerAndroid and DatePickerIOS to select dates
We found that react-native-date-input 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.