This package has been deprecated

Author message:

this package is deprecated, use expo-datepicker instead

react-native-simple-date
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

react-native-simple-date

Build Status

react-native-simple-date is a beautiful and simple datepicker for react native and expo

DEMO

Installation

npm i react-native-simple-date
yarn add react-native-simple-date

Example

import React, { useState } from 'react';
import { StyleSheet, Text, View,ViewStyle } from 'react-native';
import DatePicker from 'react-native-simple-date'
import { Entypo } from '@expo/vector-icons'; 
export default function App() {

  const [date,setDate] = useState(new Date().toString())

  return (
    <View style={styles.container}>
      <DatePicker date={date}   
      onChange={(date)=>setDate(date)} 
      icon={<Entypo name="chevron-right" size={40} color="#689CA3" />}
      />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#fff',
    alignItems: 'center',
    justifyContent: 'center',
  },
});

Properties

Property Description
date Current date selected
icon Icon
fontStyle Input text style
containerStyle Container Style

Events

Property Description
onChange (date:string)=>void

License

MIT

Free Software, Hell Yeah!

Package Sidebar

Install

npm i react-native-simple-date

Weekly Downloads

2

Version

1.0.8

License

MIT

Unpacked Size

32 kB

Total Files

27

Last publish

Collaborators

  • stealkiller