react-native-jalali-calendar

React Native Jalaali calendar


Keywords
react-native, react-native-web, calendar, jalali
License
MIT
Install
npm install react-native-jalali-calendar@0.0.6

Documentation

NPM

install size dependencies

react-native-jalali-calendar

Easy state management for react & react-native using hooks. it's useful for global state management and complex components state

TOC

Install

You should be install react-native-reanimated react-native-vector-icons starkstring moment-jalaali too

yarn add react-native-jalali-calendar react-native-reanimated react-native-vector-icons starkstring moment-jalaali

Add code to root of project

// Generate required css
import MaterialCommunityIcons from "react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf";
const iconFontStyles = `@font-face {
  src: url(${MaterialCommunityIcons});
  font-family: MaterialCommunityIcons;
}`;

// Create stylesheet
const style = document.createElement("style");
style.type = "text/css";
if (style.styleSheet) {
  style.styleSheet.cssText = iconFontStyles;
} else {
  style.appendChild(document.createTextNode(iconFontStyles));
}

// Inject stylesheet
document.head.appendChild(style);