Socket
Socket
Sign inDemoInstall

expo-datepicker

Package Overview
Dependencies
0
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    expo-datepicker

Simple date picker


Version published
Weekly downloads
25
decreased by-50.98%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

expo-datepicker

Build Status

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

DEMO

Installation

npm i expo-datepicker
yarn add expo-datepicker

Example

import React, { useState } from "react";
import { StyleSheet, Text, View, ViewStyle } from "react-native";
import DatePicker from "expo-datepicker";
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
backgroundColorInput background color
borderColorChange border color
inputDayStyleChange style day input
inputMonthStyleChange Style month input
inputYearStyleChange style year input
inputStyleChange style of all input
itemStyleModalChange style item modal
modalBackgroundColorChange modal background
selectedColorChange color item modal
selectedTextColorChange text color item
textStyleModalChange text style item

Events

PropertyDescription
onChange(date:string)=>void

License

MIT

Free Software, Hell Yeah!

Keywords

FAQs

Last updated on 31 Dec 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