Separate Book Marks with Dot

Published in Calendars
June 13, 2022
1 min read
Separate Book Marks with Dot

Introduction 📆

This module includes various customizable React-Native calendar components.

The package is both Android and iOS compatible.

Installation

npm install --save react-native-calendars

Example

import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import { Calendar } from 'react-native-calendars';
export default function App() {
return (
<View style={styles.container}>
<Calendar
// Collection of dates that have to be marked. Default = {}
markedDates={{
'2022-06-16': {selected: true, marked: true, selectedColor: 'blue'},
'2022-06-17': {marked: true},
'2022-06-18': {marked: true, dotColor: 'red', activeOpacity: 0},
'2022-06-15': {disabled: true, disableTouchEvent: true}
}}
/>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

Tutorial


Share


Previous Article
Simple Calendar
Next Article
Period marking
Awesome React Native
© 2025, All Rights Reserved.

Social Media