react-native-resource-calendar 1.0.24 → 1.0.26
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 +12 -0
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -5
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -22,11 +22,23 @@ https://github.com/user-attachments/assets/68fe0283-73ce-4689-8241-6587b817ecbd
|
|
|
22
22
|
|
|
23
23
|
## 📦 Installation
|
|
24
24
|
|
|
25
|
+
This library supports multiple Expo SDK versions via npm dist-tags.
|
|
26
|
+
|
|
27
|
+
✅ Expo SDK 54 (default / latest)
|
|
25
28
|
```bash
|
|
26
29
|
npm install react-native-resource-calendar
|
|
27
30
|
# or
|
|
28
31
|
yarn add react-native-resource-calendar
|
|
29
32
|
```
|
|
33
|
+
This installs the latest release, compatible with Expo SDK 54.
|
|
34
|
+
|
|
35
|
+
🧭 Expo SDK 53 (legacy)
|
|
36
|
+
```bash
|
|
37
|
+
npm install react-native-resource-calendar@legacy
|
|
38
|
+
# or
|
|
39
|
+
yarn add react-native-resource-calendar@legacy
|
|
40
|
+
```
|
|
41
|
+
Use this if your app is still running Expo SDK 53.
|
|
30
42
|
|
|
31
43
|
## ⚙️ Peer Dependencies
|
|
32
44
|
|
package/dist/index.js
CHANGED
|
@@ -803,15 +803,18 @@ var EventGridBlocksSkia = ({
|
|
|
803
803
|
const onTouchesUp = React19__namespace.useCallback(() => {
|
|
804
804
|
setPressedRow(null);
|
|
805
805
|
}, []);
|
|
806
|
-
const longPressGesture = reactNativeGestureHandler.Gesture.LongPress().onBegin((e) => {
|
|
806
|
+
const longPressGesture = reactNativeGestureHandler.Gesture.LongPress().minDuration(350).onBegin((e) => {
|
|
807
807
|
"worklet";
|
|
808
808
|
Animated2.runOnJS(onPressBegin)(Math.floor(e.y / rowHeight));
|
|
809
|
-
}).
|
|
809
|
+
}).onStart((e) => {
|
|
810
|
+
"worklet";
|
|
811
|
+
Animated2.runOnJS(onSlotLongPress)(Math.floor(e.y / rowHeight));
|
|
812
|
+
}).onTouchesCancelled(() => {
|
|
810
813
|
"worklet";
|
|
811
814
|
Animated2.runOnJS(onTouchesUp)();
|
|
812
|
-
}).
|
|
815
|
+
}).onTouchesUp(() => {
|
|
813
816
|
"worklet";
|
|
814
|
-
Animated2.runOnJS(
|
|
817
|
+
Animated2.runOnJS(onTouchesUp)();
|
|
815
818
|
}).onFinalize(() => {
|
|
816
819
|
"worklet";
|
|
817
820
|
Animated2.runOnJS(onTouchesUp)();
|
|
@@ -822,6 +825,9 @@ var EventGridBlocksSkia = ({
|
|
|
822
825
|
}).onEnd((e) => {
|
|
823
826
|
"worklet";
|
|
824
827
|
Animated2.runOnJS(onSlotPress)(Math.floor(e.y / rowHeight));
|
|
828
|
+
}).onTouchesCancelled(() => {
|
|
829
|
+
"worklet";
|
|
830
|
+
Animated2.runOnJS(onTouchesUp)();
|
|
825
831
|
}).onTouchesUp(() => {
|
|
826
832
|
"worklet";
|
|
827
833
|
Animated2.runOnJS(onTouchesUp)();
|
|
@@ -1931,7 +1937,6 @@ var CalendarInner = (props) => {
|
|
|
1931
1937
|
ref: flashListRef,
|
|
1932
1938
|
onScroll: flashListScrollHandler,
|
|
1933
1939
|
estimatedItemSize: APPOINTMENT_BLOCK_WIDTH,
|
|
1934
|
-
removeClippedSubviews: true,
|
|
1935
1940
|
data: !isMultiDay ? resourceIds : columns,
|
|
1936
1941
|
horizontal: true,
|
|
1937
1942
|
renderItem,
|