react-native-gesture-handler 3.0.0-beta.4 → 3.0.0-beta.5

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.
Files changed (162) hide show
  1. package/android/src/main/java/com/swmansion/gesturehandler/core/GestureHandlerOrchestrator.kt +12 -4
  2. package/android/src/main/java/com/swmansion/gesturehandler/core/NativeViewGestureHandler.kt +6 -2
  3. package/android/src/main/java/com/swmansion/gesturehandler/react/Extensions.kt +21 -0
  4. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.kt +113 -49
  5. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerDetectorView.kt +75 -98
  6. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerModule.kt +7 -10
  7. package/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerRegistry.kt +64 -2
  8. package/apple/RNGestureHandler.mm +50 -27
  9. package/apple/RNGestureHandlerButton.h +4 -2
  10. package/apple/RNGestureHandlerButton.mm +106 -27
  11. package/apple/RNGestureHandlerButtonComponentView.mm +17 -2
  12. package/apple/RNGestureHandlerDetector.mm +99 -75
  13. package/apple/RNGestureHandlerModule.mm +11 -14
  14. package/apple/RNGestureHandlerRegistry.h +14 -0
  15. package/apple/RNGestureHandlerRegistry.m +56 -0
  16. package/lib/module/RNGestureHandlerModule.web.js +5 -1
  17. package/lib/module/RNGestureHandlerModule.web.js.map +1 -1
  18. package/lib/module/components/GestureButtons.js +16 -5
  19. package/lib/module/components/GestureButtons.js.map +1 -1
  20. package/lib/module/components/GestureHandlerButton.js.map +1 -1
  21. package/lib/module/components/GestureHandlerButton.web.js +63 -23
  22. package/lib/module/components/GestureHandlerButton.web.js.map +1 -1
  23. package/lib/module/components/Pressable/Pressable.js +1 -0
  24. package/lib/module/components/Pressable/Pressable.js.map +1 -1
  25. package/lib/module/components/ReanimatedDrawerLayout.js.map +1 -1
  26. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js +38 -5
  27. package/lib/module/components/ReanimatedSwipeable/ReanimatedSwipeable.js.map +1 -1
  28. package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js +1 -2
  29. package/lib/module/handlers/gestures/GestureDetector/useDetectorUpdater.js.map +1 -1
  30. package/lib/module/handlers/gestures/GestureDetector/utils.js +0 -47
  31. package/lib/module/handlers/gestures/GestureDetector/utils.js.map +1 -1
  32. package/lib/module/handlers/gestures/reanimatedWrapper.js +14 -2
  33. package/lib/module/handlers/gestures/reanimatedWrapper.js.map +1 -1
  34. package/lib/module/mocks/module.js +3 -2
  35. package/lib/module/mocks/module.js.map +1 -1
  36. package/lib/module/specs/NativeRNGestureHandlerModule.js.map +1 -1
  37. package/lib/module/specs/RNGestureHandlerButtonNativeComponent.ts +28 -13
  38. package/lib/module/v3/NativeProxy.js +5 -3
  39. package/lib/module/v3/NativeProxy.js.map +1 -1
  40. package/lib/module/v3/NativeProxy.web.js +2 -2
  41. package/lib/module/v3/NativeProxy.web.js.map +1 -1
  42. package/lib/module/v3/components/GestureButtons.js +8 -3
  43. package/lib/module/v3/components/GestureButtons.js.map +1 -1
  44. package/lib/module/v3/components/Touchable/Touchable.js +53 -4
  45. package/lib/module/v3/components/Touchable/Touchable.js.map +1 -1
  46. package/lib/module/v3/detectors/HostGestureDetector.web.js +178 -59
  47. package/lib/module/v3/detectors/HostGestureDetector.web.js.map +1 -1
  48. package/lib/module/v3/detectors/NativeDetector.js +3 -2
  49. package/lib/module/v3/detectors/NativeDetector.js.map +1 -1
  50. package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js +3 -4
  51. package/lib/module/v3/detectors/VirtualDetector/InterceptingGestureDetector.js.map +1 -1
  52. package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js +2 -2
  53. package/lib/module/v3/detectors/VirtualDetector/VirtualDetector.js.map +1 -1
  54. package/lib/module/v3/detectors/useGestureRelationsUpdater.js +23 -0
  55. package/lib/module/v3/detectors/useGestureRelationsUpdater.js.map +1 -0
  56. package/lib/module/v3/detectors/utils.js +10 -8
  57. package/lib/module/v3/detectors/utils.js.map +1 -1
  58. package/lib/module/v3/hooks/useGesture.js +3 -18
  59. package/lib/module/v3/hooks/useGesture.js.map +1 -1
  60. package/lib/module/v3/hooks/utils/configUtils.js +1 -3
  61. package/lib/module/v3/hooks/utils/configUtils.js.map +1 -1
  62. package/lib/module/v3/hooks/utils/eventHandlersUtils.js +31 -29
  63. package/lib/module/v3/hooks/utils/eventHandlersUtils.js.map +1 -1
  64. package/lib/module/v3/hooks/utils/reanimatedUtils.js +8 -2
  65. package/lib/module/v3/hooks/utils/reanimatedUtils.js.map +1 -1
  66. package/lib/module/web/tools/NodeManager.js +44 -0
  67. package/lib/module/web/tools/NodeManager.js.map +1 -1
  68. package/lib/typescript/RNGestureHandlerModule.web.d.ts +1 -1
  69. package/lib/typescript/RNGestureHandlerModule.web.d.ts.map +1 -1
  70. package/lib/typescript/components/GestureButtons.d.ts +14 -6
  71. package/lib/typescript/components/GestureButtons.d.ts.map +1 -1
  72. package/lib/typescript/components/GestureHandlerButton.d.ts +62 -8
  73. package/lib/typescript/components/GestureHandlerButton.d.ts.map +1 -1
  74. package/lib/typescript/components/GestureHandlerButton.web.d.ts +10 -3
  75. package/lib/typescript/components/GestureHandlerButton.web.d.ts.map +1 -1
  76. package/lib/typescript/components/Pressable/Pressable.d.ts.map +1 -1
  77. package/lib/typescript/components/Pressable/PressableProps.d.ts +1 -1
  78. package/lib/typescript/components/Pressable/PressableProps.d.ts.map +1 -1
  79. package/lib/typescript/components/ReanimatedDrawerLayout.d.ts +16 -14
  80. package/lib/typescript/components/ReanimatedDrawerLayout.d.ts.map +1 -1
  81. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts +2 -1
  82. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeable.d.ts.map +1 -1
  83. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts +30 -34
  84. package/lib/typescript/components/ReanimatedSwipeable/ReanimatedSwipeableProps.d.ts.map +1 -1
  85. package/lib/typescript/handlers/gestures/GestureDetector/useDetectorUpdater.d.ts.map +1 -1
  86. package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts +0 -1
  87. package/lib/typescript/handlers/gestures/GestureDetector/utils.d.ts.map +1 -1
  88. package/lib/typescript/handlers/gestures/reanimatedWrapper.d.ts.map +1 -1
  89. package/lib/typescript/mocks/module.d.ts +1 -1
  90. package/lib/typescript/mocks/module.d.ts.map +1 -1
  91. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts +2 -2
  92. package/lib/typescript/specs/NativeRNGestureHandlerModule.d.ts.map +1 -1
  93. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts +19 -11
  94. package/lib/typescript/specs/RNGestureHandlerButtonNativeComponent.d.ts.map +1 -1
  95. package/lib/typescript/v3/NativeProxy.d.ts +1 -1
  96. package/lib/typescript/v3/NativeProxy.d.ts.map +1 -1
  97. package/lib/typescript/v3/NativeProxy.web.d.ts +1 -1
  98. package/lib/typescript/v3/NativeProxy.web.d.ts.map +1 -1
  99. package/lib/typescript/v3/components/GestureButtons.d.ts +1 -38
  100. package/lib/typescript/v3/components/GestureButtons.d.ts.map +1 -1
  101. package/lib/typescript/v3/components/GestureButtonsProps.d.ts +1 -1
  102. package/lib/typescript/v3/components/GestureButtonsProps.d.ts.map +1 -1
  103. package/lib/typescript/v3/components/Touchable/Touchable.d.ts.map +1 -1
  104. package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts +39 -1
  105. package/lib/typescript/v3/components/Touchable/TouchableProps.d.ts.map +1 -1
  106. package/lib/typescript/v3/detectors/HostGestureDetector.web.d.ts.map +1 -1
  107. package/lib/typescript/v3/detectors/NativeDetector.d.ts.map +1 -1
  108. package/lib/typescript/v3/detectors/VirtualDetector/InterceptingGestureDetector.d.ts.map +1 -1
  109. package/lib/typescript/v3/detectors/useGestureRelationsUpdater.d.ts +3 -0
  110. package/lib/typescript/v3/detectors/useGestureRelationsUpdater.d.ts.map +1 -0
  111. package/lib/typescript/v3/detectors/utils.d.ts +3 -3
  112. package/lib/typescript/v3/detectors/utils.d.ts.map +1 -1
  113. package/lib/typescript/v3/hooks/useGesture.d.ts.map +1 -1
  114. package/lib/typescript/v3/hooks/utils/configUtils.d.ts.map +1 -1
  115. package/lib/typescript/v3/hooks/utils/eventHandlersUtils.d.ts.map +1 -1
  116. package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts +1 -0
  117. package/lib/typescript/v3/hooks/utils/reanimatedUtils.d.ts.map +1 -1
  118. package/lib/typescript/web/tools/NodeManager.d.ts +7 -0
  119. package/lib/typescript/web/tools/NodeManager.d.ts.map +1 -1
  120. package/package.json +3 -3
  121. package/src/RNGestureHandlerModule.web.ts +5 -1
  122. package/src/components/GestureButtons.tsx +23 -7
  123. package/src/components/GestureHandlerButton.tsx +70 -8
  124. package/src/components/GestureHandlerButton.web.tsx +97 -29
  125. package/src/components/Pressable/Pressable.tsx +1 -0
  126. package/src/components/Pressable/PressableProps.tsx +2 -1
  127. package/src/components/ReanimatedDrawerLayout.tsx +27 -23
  128. package/src/components/ReanimatedSwipeable/ReanimatedSwipeable.tsx +51 -5
  129. package/src/components/ReanimatedSwipeable/ReanimatedSwipeableProps.ts +31 -39
  130. package/src/handlers/gestures/GestureDetector/useDetectorUpdater.ts +1 -2
  131. package/src/handlers/gestures/GestureDetector/utils.ts +0 -52
  132. package/src/handlers/gestures/reanimatedWrapper.ts +20 -2
  133. package/src/mocks/module.tsx +4 -2
  134. package/src/specs/NativeRNGestureHandlerModule.ts +2 -4
  135. package/src/specs/RNGestureHandlerButtonNativeComponent.ts +28 -13
  136. package/src/v3/NativeProxy.ts +9 -7
  137. package/src/v3/NativeProxy.web.ts +2 -2
  138. package/src/v3/components/GestureButtons.tsx +13 -5
  139. package/src/v3/components/GestureButtonsProps.ts +1 -0
  140. package/src/v3/components/Touchable/Touchable.tsx +65 -4
  141. package/src/v3/components/Touchable/TouchableProps.ts +49 -1
  142. package/src/v3/detectors/HostGestureDetector.web.tsx +265 -108
  143. package/src/v3/detectors/NativeDetector.tsx +3 -2
  144. package/src/v3/detectors/VirtualDetector/InterceptingGestureDetector.tsx +3 -4
  145. package/src/v3/detectors/VirtualDetector/VirtualDetector.tsx +2 -2
  146. package/src/v3/detectors/useGestureRelationsUpdater.ts +30 -0
  147. package/src/v3/detectors/utils.ts +28 -12
  148. package/src/v3/hooks/useGesture.ts +4 -14
  149. package/src/v3/hooks/utils/configUtils.ts +2 -3
  150. package/src/v3/hooks/utils/eventHandlersUtils.ts +43 -32
  151. package/src/v3/hooks/utils/reanimatedUtils.ts +10 -10
  152. package/src/web/tools/NodeManager.ts +57 -0
  153. package/lib/module/RNRenderer.js +0 -6
  154. package/lib/module/RNRenderer.js.map +0 -1
  155. package/lib/module/RNRenderer.web.js +0 -6
  156. package/lib/module/RNRenderer.web.js.map +0 -1
  157. package/lib/typescript/RNRenderer.d.ts +0 -2
  158. package/lib/typescript/RNRenderer.d.ts.map +0 -1
  159. package/lib/typescript/RNRenderer.web.d.ts +0 -4
  160. package/lib/typescript/RNRenderer.web.d.ts.map +0 -1
  161. package/src/RNRenderer.ts +0 -3
  162. package/src/RNRenderer.web.ts +0 -3
@@ -16,38 +16,49 @@ export function useMemoizedGestureCallbacks<
16
16
  >(
17
17
  callbacks: GestureCallbacks<THandlerData, TExtendedHandlerData>
18
18
  ): GestureCallbacks<THandlerData, TExtendedHandlerData> {
19
- return useMemo(
20
- () => ({
21
- ...(callbacks.onBegin ? { onBegin: callbacks.onBegin } : {}),
22
- ...(callbacks.onActivate ? { onActivate: callbacks.onActivate } : {}),
23
- ...(callbacks.onDeactivate
24
- ? { onDeactivate: callbacks.onDeactivate }
25
- : {}),
26
- ...(callbacks.onFinalize ? { onFinalize: callbacks.onFinalize } : {}),
27
- ...(callbacks.onUpdate ? { onUpdate: callbacks.onUpdate } : {}),
28
- ...(callbacks.onTouchesDown
29
- ? { onTouchesDown: callbacks.onTouchesDown }
30
- : {}),
31
- ...(callbacks.onTouchesMove
32
- ? { onTouchesMove: callbacks.onTouchesMove }
33
- : {}),
34
- ...(callbacks.onTouchesUp ? { onTouchesUp: callbacks.onTouchesUp } : {}),
35
- ...(callbacks.onTouchesCancel
36
- ? { onTouchesCancel: callbacks.onTouchesCancel }
37
- : {}),
38
- }),
39
- [
40
- callbacks.onActivate,
41
- callbacks.onBegin,
42
- callbacks.onDeactivate,
43
- callbacks.onFinalize,
44
- callbacks.onTouchesCancel,
45
- callbacks.onTouchesDown,
46
- callbacks.onTouchesMove,
47
- callbacks.onTouchesUp,
48
- callbacks.onUpdate,
49
- ]
50
- );
19
+ return useMemo(() => {
20
+ const memoized: GestureCallbacks<THandlerData, TExtendedHandlerData> = {};
21
+
22
+ if (callbacks.onBegin) {
23
+ memoized.onBegin = callbacks.onBegin;
24
+ }
25
+ if (callbacks.onActivate) {
26
+ memoized.onActivate = callbacks.onActivate;
27
+ }
28
+ if (callbacks.onDeactivate) {
29
+ memoized.onDeactivate = callbacks.onDeactivate;
30
+ }
31
+ if (callbacks.onFinalize) {
32
+ memoized.onFinalize = callbacks.onFinalize;
33
+ }
34
+ if (callbacks.onUpdate) {
35
+ memoized.onUpdate = callbacks.onUpdate;
36
+ }
37
+ if (callbacks.onTouchesDown) {
38
+ memoized.onTouchesDown = callbacks.onTouchesDown;
39
+ }
40
+ if (callbacks.onTouchesMove) {
41
+ memoized.onTouchesMove = callbacks.onTouchesMove;
42
+ }
43
+ if (callbacks.onTouchesUp) {
44
+ memoized.onTouchesUp = callbacks.onTouchesUp;
45
+ }
46
+ if (callbacks.onTouchesCancel) {
47
+ memoized.onTouchesCancel = callbacks.onTouchesCancel;
48
+ }
49
+
50
+ return memoized;
51
+ }, [
52
+ callbacks.onActivate,
53
+ callbacks.onBegin,
54
+ callbacks.onDeactivate,
55
+ callbacks.onFinalize,
56
+ callbacks.onTouchesCancel,
57
+ callbacks.onTouchesDown,
58
+ callbacks.onTouchesMove,
59
+ callbacks.onTouchesUp,
60
+ callbacks.onUpdate,
61
+ ]);
51
62
  }
52
63
 
53
64
  function getHandler<THandlerData, TExtendedHandlerData extends THandlerData>(
@@ -2,7 +2,6 @@ import { Reanimated } from '../../../handlers/gestures/reanimatedWrapper';
2
2
  import { NativeProxy } from '../../NativeProxy';
3
3
  import type {
4
4
  BaseGestureConfig,
5
- GestureCallbacks,
6
5
  SharedValue,
7
6
  SharedValueOrT,
8
7
  } from '../../types';
@@ -21,7 +20,7 @@ function hash(str: string) {
21
20
  return h >>> 0;
22
21
  }
23
22
 
24
- const SHARED_VALUE_OFFSET = 1.618;
23
+ export const SHARED_VALUE_OFFSET = 1.618;
25
24
 
26
25
  // Don't transfer entire NativeProxy to the UI thread
27
26
  const { updateGestureHandlerConfig } = NativeProxy;
@@ -101,14 +100,15 @@ export function hasWorkletEventHandlers<
101
100
  THandlerData,
102
101
  TExtendedHandlerData extends THandlerData,
103
102
  >(config: BaseGestureConfig<TConfig, THandlerData, TExtendedHandlerData>) {
104
- return Object.entries(config).some(
105
- ([key, value]) =>
106
- HandlerCallbacks.has(
107
- key as keyof GestureCallbacks<THandlerData, TExtendedHandlerData>
108
- ) &&
109
- typeof value === 'function' &&
110
- '__workletHash' in value
111
- );
103
+ for (const key of HandlerCallbacks) {
104
+ const value = config[key];
105
+
106
+ if (typeof value === 'function' && '__workletHash' in value) {
107
+ return true;
108
+ }
109
+ }
110
+
111
+ return false;
112
112
  }
113
113
 
114
114
  export function maybeUnpackValue<T>(
@@ -2,6 +2,8 @@ import type { ValueOf } from '../../typeUtils';
2
2
  import type { Gestures } from '../Gestures';
3
3
  import type IGestureHandler from '../handlers/IGestureHandler';
4
4
 
5
+ type HandlerReadyCallback = (handler: IGestureHandler) => void;
6
+
5
7
  // eslint-disable-next-line @typescript-eslint/no-extraneous-class
6
8
  export default abstract class NodeManager {
7
9
  private static gestures: Record<
@@ -9,6 +11,9 @@ export default abstract class NodeManager {
9
11
  InstanceType<ValueOf<typeof Gestures>>
10
12
  > = {};
11
13
 
14
+ private static observers: Map<number, Map<object, HandlerReadyCallback>> =
15
+ new Map();
16
+
12
17
  public static getHandler(tag: number): IGestureHandler {
13
18
  if (tag in this.gestures) {
14
19
  return this.gestures[tag] as IGestureHandler;
@@ -17,6 +22,10 @@ export default abstract class NodeManager {
17
22
  throw new Error(`No handler for tag ${tag}`);
18
23
  }
19
24
 
25
+ public static hasHandler(tag: number): boolean {
26
+ return tag in this.gestures;
27
+ }
28
+
20
29
  public static createGestureHandler(
21
30
  handlerTag: number,
22
31
  handler: InstanceType<ValueOf<typeof Gestures>>
@@ -29,6 +38,15 @@ export default abstract class NodeManager {
29
38
 
30
39
  this.gestures[handlerTag] = handler;
31
40
  this.gestures[handlerTag].handlerTag = handlerTag;
41
+
42
+ const pending = this.observers.get(handlerTag);
43
+ if (pending) {
44
+ // Snapshot before iterating — callbacks may call back into observeHandler / cancelObservation
45
+ // and mutate the underlying map.
46
+ for (const callback of Array.from(pending.values())) {
47
+ callback(handler as IGestureHandler);
48
+ }
49
+ }
32
50
  }
33
51
 
34
52
  public static dropGestureHandler(handlerTag: number): void {
@@ -50,6 +68,45 @@ export default abstract class NodeManager {
50
68
  this.gestures[handlerTag].detach();
51
69
  }
52
70
 
71
+ // Invokes `callback` every time a handler with `tag` is created and, if the handler already exists,
72
+ // immediately before returning. The observation persists until explicitly cancelled: the registry
73
+ // holds both `owner` and `callback` strongly, so callers MUST call `cancelObservation` or
74
+ // `cancelAllObservationsForOwner` when the owner is going away (typically in effect cleanup) to
75
+ // avoid leaking. Observing the same tag twice with the same `owner` replaces the previous callback.
76
+ public static observeHandler(
77
+ tag: number,
78
+ owner: object,
79
+ callback: HandlerReadyCallback
80
+ ): void {
81
+ let table = this.observers.get(tag);
82
+ if (!table) {
83
+ table = new Map();
84
+ this.observers.set(tag, table);
85
+ }
86
+ table.set(owner, callback);
87
+
88
+ if (tag in this.gestures) {
89
+ callback(this.gestures[tag] as IGestureHandler);
90
+ }
91
+ }
92
+
93
+ public static cancelObservation(tag: number, owner: object): void {
94
+ const table = this.observers.get(tag);
95
+ if (!table) {
96
+ return;
97
+ }
98
+ table.delete(owner);
99
+ if (table.size === 0) {
100
+ this.observers.delete(tag);
101
+ }
102
+ }
103
+
104
+ public static cancelAllObservationsForOwner(owner: object): void {
105
+ for (const tag of this.observers.keys()) {
106
+ this.cancelObservation(tag, owner);
107
+ }
108
+ }
109
+
53
110
  public static get nodes() {
54
111
  return { ...this.gestures };
55
112
  }
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
4
- // @ts-nocheck
5
- export { default as RNRenderer } from 'react-native/Libraries/Renderer/shims/ReactNative';
6
- //# sourceMappingURL=RNRenderer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["default","RNRenderer"],"sourceRoot":"../../src","sources":["RNRenderer.ts"],"mappings":";;AAAA;AACA;AACA,SAASA,OAAO,IAAIC,UAAU,QAAQ,mDAAmD","ignoreList":[]}
@@ -1,6 +0,0 @@
1
- "use strict";
2
-
3
- export const RNRenderer = {
4
- findHostInstance_DEPRECATED: _ref => null
5
- };
6
- //# sourceMappingURL=RNRenderer.web.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["RNRenderer","findHostInstance_DEPRECATED","_ref"],"sourceRoot":"../../src","sources":["RNRenderer.web.ts"],"mappings":";;AAAA,OAAO,MAAMA,UAAU,GAAG;EACxBC,2BAA2B,EAAGC,IAAS,IAAK;AAC9C,CAAC","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export { default as RNRenderer } from 'react-native/Libraries/Renderer/shims/ReactNative';
2
- //# sourceMappingURL=RNRenderer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNRenderer.d.ts","sourceRoot":"","sources":["../../src/RNRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mDAAmD,CAAC"}
@@ -1,4 +0,0 @@
1
- export declare const RNRenderer: {
2
- findHostInstance_DEPRECATED: (_ref: any) => null;
3
- };
4
- //# sourceMappingURL=RNRenderer.web.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RNRenderer.web.d.ts","sourceRoot":"","sources":["../../src/RNRenderer.web.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;wCACe,GAAG;CACxC,CAAC"}
package/src/RNRenderer.ts DELETED
@@ -1,3 +0,0 @@
1
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
2
- // @ts-nocheck
3
- export { default as RNRenderer } from 'react-native/Libraries/Renderer/shims/ReactNative';
@@ -1,3 +0,0 @@
1
- export const RNRenderer = {
2
- findHostInstance_DEPRECATED: (_ref: any) => null,
3
- };