Multi Dot marking

Published in Calendars
June 13, 2022
1 min read
Multi Dot marking

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';
const vacation = {key: 'vacation', color: 'red', selectedDotColor: 'blue'};
const massage = {key: 'massage', color: 'blue', selectedDotColor: 'blue'};
const workout = {key: 'workout', color: 'green'};
export default function App() {
return (
<View style={styles.container}>
<Calendar
markingType={'multi-dot'}
markedDates={{
'2022-06-24': {dots: [vacation, massage, workout], selected: true, selectedColor: 'red'},
'2022-06-25': {dots: [massage, workout], disabled: true}
}}
/>
<StatusBar style="auto" />
</View>
);
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
},
});

Tutorial


Share


Previous Article
Multi-period marking
Awesome React Native
© 2025, All Rights Reserved.

Social Media