Socket
Socket
Sign inDemoInstall

react-native-simple-date

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    react-native-simple-date

Simple date picker


Version published
Weekly downloads
8
decreased by-11.11%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

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

PropertyDescription
dateCurrent date selected
iconIcon
fontStyleInput text style
containerStyleContainer Style

Events

PropertyDescription
onChange(date:string)=>void

License

MIT

Free Software, Hell Yeah!

Keywords

FAQs

Last updated on 10 Mar 2022

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc