1.2.21 • Published 2 years ago
react-native-solid-datepicker v1.2.21
react-native-solid-datepicker
An customizable date-picker for react-native with Android and IOS support
Installation
npm install react-native-solid-datepicker
or
yarn add react-native-solid-datepicker
Example
Usage
import { StyleSheet, View } from 'react-native';
import SolidDatePicker from 'react-native-solid-datepicker';
import React from 'react';
export default function App() {
const [date, setDate] = React.useState(null);
React.useEffect(() => {
setDate('2022/12/15');
}, []);
return (
<View style={styles.container}>
<SolidDatePicker
date={date}
onChange={(strDate: string) => setDate(strDate)}
/>
</View>
);
}
const styles = StyleSheet.create({
container: { alignItems: 'center', paddingTop: 90, flex: 1.3 },
text: { alignItems: 'center' },
});
Properties
Property | Description | Default value |
---|---|---|
date | (required) State variable | N/A |
onChange | (required) State varable change value | N/A |
showError | (optional) Boolean value (true/false) | true |
minYear | (optional) String value | 1999 |
maxYear | (optional) String value | 2030 |
darkMode | (optional) Boolean value (true/false) | false |
isSearchable | (optional) Boolean value (true/false) for month and year | true |
isDisabled | (optional) Boolean value (true/false) disable datepicker | false |
Contributing
See the contributing guide to learn how to contribute to the repository and the development workflow.
License
MIT
Made with create-react-native-library
1.2.21
2 years ago
1.2.17
2 years ago
1.2.16
2 years ago
1.2.15
2 years ago
1.2.14
2 years ago
1.2.13
2 years ago
1.2.12
2 years ago
1.2.11
2 years ago
1.2.10
2 years ago
1.2.9
2 years ago
1.2.8
2 years ago
1.2.7
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
0.1.1
2 years ago
0.1.3
2 years ago