react-native-resource-calendar 1.0.4 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,6 +17,11 @@ Expo compatibility.
17
17
 
18
18
  ---
19
19
 
20
+ ## 🎬 Demo
21
+ https://github.com/user-attachments/assets/48841509-c801-4d77-948b-f108ff57ad34
22
+
23
+ ---
24
+
20
25
  ## 📦 Installation
21
26
 
22
27
  ```bash
@@ -25,12 +30,39 @@ npm install react-native-resource-calendar
25
30
  yarn add react-native-resource-calendar
26
31
  ```
27
32
 
28
- ## 🚀 Quick Start
33
+ ## ⚙️ Peer Dependencies
29
34
 
30
- Follow these steps to get started quickly with **React Native Resource Calendar**.
35
+ This library relies on several React Native ecosystem packages that must be installed in your app.
36
+ If you’re using Expo, run the following to ensure compatible versions:
37
+
38
+ ```bash
39
+ npx expo install \
40
+ react-native-gesture-handler \
41
+ react-native-reanimated \
42
+ react-native-svg \
43
+ @shopify/flash-list \
44
+ @shopify/react-native-skia \
45
+ expo-haptics
46
+ ```
47
+
48
+ If you’re using bare React Native (not Expo), install them manually:
49
+
50
+ ```bash
51
+ npm install \
52
+ react-native-gesture-handler \
53
+ react-native-reanimated \
54
+ react-native-svg \
55
+ @shopify/flash-list \
56
+ @shopify/react-native-skia \
57
+ expo-haptics
58
+ ```
31
59
 
32
60
  ---
33
61
 
62
+ ## 🚀 Quick Start
63
+
64
+ Follow these steps to get started quickly with **React Native Resource Calendar**.
65
+
34
66
  ### 1️⃣ Wrap your app with CalendarBindingProvider
35
67
 
36
68
  ### 2️⃣ Feed the Calendar component with resources and events
@@ -262,6 +294,8 @@ export default function App() {
262
294
  }
263
295
  ```
264
296
 
297
+ ---
298
+
265
299
  ## ⚙️ Calendar Props
266
300
 
267
301
  The `Calendar` component accepts a flexible set of props for customizing layout, theme, and interactivity.
@@ -338,4 +372,4 @@ type CalendarTheme = {
338
372
  fontFamily?: string;
339
373
  };
340
374
  };
341
- ```
375
+ ```
package/dist/index.js CHANGED
@@ -712,10 +712,11 @@ function StaffAvatar({
712
712
  style: {
713
713
  fontFamily: titleFace,
714
714
  fontSize,
715
- color: textColor || "#4d959c"
715
+ color: textColor || "#4d959c",
716
+ lineHeight: circleSize
716
717
  }
717
718
  },
718
- name ? name.split(" ").map((n) => n[0]).join("") : ""
719
+ name ? name.split(" ").map((n) => n[0]).join("").slice(0, 2) : ""
719
720
  ))))
720
721
  );
721
722
  }