Giter VIP home page Giter VIP logo

wrathchaos / react-native-monthly Goto Github PK

View Code? Open in Web Editor NEW
27.0 4.0 3.0 10.37 MB

Animated and customizable monthly calendar for React Native

Home Page: https://freakycoder.com

JavaScript 7.39% Starlark 2.47% Java 25.45% Ruby 3.12% Objective-C 18.14% TypeScript 43.43%
react reactjs react-native calendar monthly monthly-calendar calendar-view calendar-component ios mobile android google apple

react-native-monthly's Introduction

React Native Monthly

Animated and customizable monthly calendar for React Native

npm version npm Platform - Android and iOS License: MIT styled with prettier

React Native Monthly React Native Monthly

Installation

Add the dependency:

npm i react-native-monthly

Peer Dependencies

IMPORTANT! You need install them
"@freakycoder/react-native-bounceable": ">= 0.2.4",

Usage

Import

import RNMonthly from "react-native-monthly";

Fundamental Usage

<RNMonthly numberOfDays={31} activeDays={[1, 5, 6, 11, 21, 31]} />
<RNMonthly
  numberOfDays={30}
  activeBackgroundColor="green"
  inactiveBackgroundColor="#E6FFDE"
  activeDays={[1, 5, 6, 11, 21, 31]}
/>
<RNMonthly
  numberOfDays={28}
  activeBackgroundColor="#9C1818"
  inactiveBackgroundColor="#FFDEDE"
  activeDays={[1, 5, 6, 11, 21, 31]}
/>

Example Project 😍

You can checkout the example project 🥰

Simply run

  • npm i
  • react-native run-ios/android

should work of the example project.

Configuration - Props

Fundamentals

Property Type Default Description
numberOfDays number 31 change days of the month it should be more than 28 and less than 31
activeDays number[] undefined set the active days
style ViewStyle default set or override the style object for the main container
today number undefined enable the today's selected item or any other

Customization (Optionals)

Property Type Default Description
activeBackgroundColor color "#49c1c2" change the active background color
inactiveBackgroundColor color "#f0f0f0" change the inactive background color
todayTextStyle TextStyle default set or override the style object for the today text style
itemContainerStyle ViewStyle default set or override the style object for the each item container
onPress function undefined set your own logic for the button functionality when it is pressed

Future Plans

  • LICENSE
  • Today Feature
  • Write an article about the lib on Medium

Credits

Insipired on Martyna Zielińska

Author

FreakyCoder, [email protected]

License

React Native Monthly is available under the MIT license. See the LICENSE file for more info.

react-native-monthly's People

Contributors

wrathchaos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-monthly's Issues

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.