New:Microsoft Teams Notifications Are Now Available in Socket.Learn more →
Get Started

rn-calendar-simple

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-calendar-simple

React Native Calendar

latest
Source
npmnpm
Version
1.0.8
Version published
Weekly downloads
7
-12.5%
Maintainers
1
Weekly downloads
 
Created
Source

react-native-calendar

Test Lint

Peggada

Installation

yarn add rn-calendar-simple
npm install rn-calendar-simple

How use

import { useState } from 'react';
import { Text, View } from 'react-native';
import { Calendar } from 'rn-calendar-simple';

export default function App() {
  const [selectedDate, setSelectedDate] = useState<Date>(new Date());
  return (
    <View>
      <Text>{selectedDate.toLocaleString()}</Text>
      <Calendar value={selectedDate} onChange={setSelectedDate} />
    </View>
  );
}

Props

PropTypeDescription
value (optional)DateThe calendar value.
onChange (optional)(d: Date) => voidThe method called when an update is performed.
min (optional)DateThe minimum date to be selected.
max (optional)DateThe maximum date to be selected.
monthLabel (optional)ArrayThe name of the months.
weekLabel (optional)ArrayThe name of the weeks.

FAQs

Package last updated on 02 Apr 2024

Related posts