Giter Club home page Giter Club logo

react-native-cz-calendar's Introduction

Manual installation

npm install react-native-cz-calendar --save

Usage

1.引入组件

import Calendar from 'react-native-cz-calendar';

iOS: 在Podfile中加入

pod 'RNCzCalendar', :path => '../node_modules/react-native-cz-calendar/ios/RNCzCalendar.podspec'

然后执行

pod install

使用

<Calendar
   evaluateView={ (calendar) => {this.calendar = calendar} }
   confirmAction={this._confirmAction}
/>

2.属性:

type: 1.单选组件 2.双选组件(暂只支持单选)
bottomSpace: 类型iPhoneX这种底部给间隙,不然会被遮挡部分底部

3.属性方法:

evaluateView: 赋值当前对象
confirmAction: 点击确定按钮回调: {'date': 2010-05-10,'arr': [2010,5,10]}

4.供外部调用的方法:

/*
* 显示日历
* data = {'date': '2010-05-10'}
* */
this.calendar.show(data = {})
/*
* 隐藏日历
* */
this.calendar.hide: 隐藏日历

react-native-cz-calendar's People

Contributors

chenzhe555 avatar

Stargazers

 avatar  avatar

Watchers

James Cloos avatar  avatar

Forkers

xuezhimin

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.