• Stars
    star
    105
  • Rank 328,196 (Top 7 %)
  • Language
    JavaScript
  • Created over 6 years ago
  • Updated over 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Simple date range picker extended from react-native-calendars

react-native-date-range-picker

A simple Date Range Picker implemented with react-native-calendars.

date-range-picker

Getting started

  1. Install react-native-calendars.
  2. Copy DateRangePicker.js to your project.

Usage

import React, { Component } from 'react';
import { StyleSheet, View } from 'react-native';
import DateRangePicker from './DateRangePicker';

type Props = {};
export default class App extends Component<Props> {
  render() {
    return (
      <View style={styles.container}>
        <DateRangePicker
          initialRange={['2018-04-01', '2018-04-10']}
          onSuccess={(s, e) => alert(s + '||' + e)}
          theme={{ markColor: 'red', markTextColor: 'white' }}/>
      </View>
    );
  }
}

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

Properties

initialRange([fromDate, toDate])

An Initial range for component. The fromDate is used to set current month.

onSuccess(fromDate, toDate)

Function executed when a valid range is selected.

theme

Extra theme properties.

  • markColor
  • markTextColor

More Repositories

1

authentication-zero

An authentication system generator for Rails applications.
Ruby
1,530
star
2

react-native-qrcode-reader

JavaScript
250
star
3

the_construct

A Modern Rails Template
CSS
214
star
4

react-native-turbolinks

React Native adapter for building hybrid apps with Turbolinks 5
Java
193
star
5

trix-extensions

Trix Extensions
JavaScript
193
star
6

administration-zero

An administration system generator for Rails applications.
HTML
107
star
7

turbo-native-initializer

Turbo IOS/Android project generator
Swift
80
star
8

css-zero

An opinionated CSS starter kit for your "nobuild" application
CSS
61
star
9

sass-zero

A CSS framework for custom UI development. (Ruby on Rails)
SCSS
39
star
10

react-native-turbo

React Native framework for making Turbo native apps
Objective-C
28
star
11

strada-rails

Use Strada in your Ruby on Rails app
Ruby
28
star
12

rinha_de_backend

Ruby
23
star
13

css-properties-counter

The 35 CSS properties you must know to do 80% of the work.
CSS
19
star
14

active-persistence

Active Persistence is a implementation of Active Record Query Interface for JPA that makes it easy and fun.
Java
16
star
15

stimulus-web-authn

JavaScript
13
star
16

corona-prophet

Profeta do corona - Using facebook prophet to predict corona vírus
Ruby
11
star
17

jsf-perfect-crud

A modern and sofisticated start template for JSF/JAVAEE
Java
10
star
18

documentation-zero

A rest api documentation generator for rails applications using markdown
Ruby
9
star
19

prime-rails

prime-rails
CSS
7
star
20

react-native-turbo-poc

Objective-C
5
star
21

react-native-form-sheet

Native dialog solution for React Native
Objective-C
2
star
22

prime-rails-showcase

Prime-Rails Showcase
JavaScript
1
star
23

primefaces-mobile

JavaScript
1
star
24

all-hallows-eve-theme

Atom All Hallows Eve Theme
CSS
1
star
25

ksroute-csv

Integração do Ksroute por arquivos csv
Java
1
star
26

lazaronixon-web-programming-exercise

Ruby
1
star
27

rinha-de-backend-2

Ruby
1
star