1.2.21 • Published 2 years ago

react-native-solid-datepicker v1.2.21

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-native-solid-datepicker

Generic badge NPM GitHub license Tests CI npm.io

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

npm.io

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

PropertyDescriptionDefault value
date(required) State variableN/A
onChange(required) State varable change valueN/A
showError(optional) Boolean value (true/false)true
minYear(optional) String value1999
maxYear(optional) String value2030
darkMode(optional) Boolean value (true/false)false
isSearchable(optional) Boolean value (true/false) for month and yeartrue
isDisabled(optional) Boolean value (true/false) disable datepickerfalse

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