• Stars
    star
    101
  • Rank 326,258 (Top 7 %)
  • Language
    JavaScript
  • Created about 6 years ago
  • Updated almost 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,300
star
2

react-native-qrcode-reader

JavaScript
251
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
194
star
5

trix-extensions

Trix Extensions
JavaScript
179
star
6

administration-zero

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

turbo-native-initializer

Turbo IOS/Android project generator
Swift
70
star
8

sass-zero

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

react-native-turbo

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

strada-rails

Use Strada in your Ruby on Rails app
Ruby
25
star
11

rinha_de_backend

Ruby
22
star
12

css-properties-counter

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

active-persistence

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

corona-prophet

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

jsf-perfect-crud

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

stimulus-web-authn

JavaScript
9
star
17

documentation-zero

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

prime-rails

prime-rails
CSS
8
star
19

react-native-turbo-poc

Objective-C
5
star
20

react-native-form-sheet

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

primefaces-mobile

JavaScript
1
star
22

prime-rails-showcase

Prime-Rails Showcase
JavaScript
1
star
23

all-hallows-eve-theme

Atom All Hallows Eve Theme
CSS
1
star
24

ksroute-csv

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

rinha-de-backend-2

Ruby
1
star